Project

General

Profile

Actions

Feature #6285

closed

Handle EML singleDateTime field in SOLR index

Added by Lauren Walker over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
12/06/2013
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Data packages may store temporal coverage in as a range of dates - beginDate and endDate or as a single date - singleDateTime - which is currently not in the schema file. This is preventing data sets described by a singleDateTime from being included in data coverage year searches.

Example data set -- doi:10.5063/AA/nceas.290.8

https://knb.ecoinformatics.org/m/#view/doi:10.5063/AA/nceas.290.8

Actions #1

Updated by ben leinfelder over 10 years ago

  • Target version set to 2.4.0
Actions #2

Updated by ben leinfelder over 10 years ago

  • Subject changed from Add singleDateTime field to Solr schema file to Handle EML singleDateTime field tin SOLR index

I think the approach should be to write the singleDateTime value to the existing solr fields for start and end date so that our client queries can remain the same.
There is a slight loss in semantics when we do this, but I think it is okay.

Actions #3

Updated by ben leinfelder over 10 years ago

  • Status changed from New to In Progress
  • Assignee set to ben leinfelder

Giving this a whirl locally and adding it to the CN lib so we all can make use of it.

Actions #4

Updated by ben leinfelder about 10 years ago

  • Status changed from In Progress to Closed

Added the application-context fiels for all eml versions to our local metcat-index project with the new singleDateTime parsing defined. These are also in the d1 project's trunk so they will benefit from the change, eventually. We could, eventually, remove our local context files when we use a newer tagged version of the d1 library that includes these new beans.

Actions #5

Updated by ben leinfelder about 10 years ago

  • Description updated (diff)
Actions #6

Updated by ben leinfelder about 10 years ago

  • Status changed from Closed to In Progress
Actions #7

Updated by ben leinfelder about 10 years ago

  • Subject changed from Handle EML singleDateTime field tin SOLR index to Handle EML singleDateTime field in SOLR index
Actions #8

Updated by ben leinfelder about 10 years ago

Removed the extra bean definitions and combined the single and range of dates into the existing beginDate and endDate fields.

//dataset/coverage/temporalCoverage/rangeOfDates/beginDate/calendarDate/text() | //dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()
//dataset/coverage/temporalCoverage/rangeOfDates/endDate/calendarDate/text() | //dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()

Actions #9

Updated by ben leinfelder about 10 years ago

  • Status changed from In Progress to Resolved

I'm happy with this as an interim solution until we implement something that can effectively query multiple ranges or multiple single values (see: https://redmine.dataone.org/issues/4278)

Actions

Also available in: Atom PDF