DataONEorg / d1_cn_index_processor

The CN index processor component
0 stars 1 forks source link

For Solr date fields, is just the date sufficient? #9

Open gothub opened 3 years ago

gothub commented 3 years ago

Solr 'date' field types contain date and time information.

For fields that contain dates in the index, time of day info is ignored, even if though it may be available in the source metadata. However, the value inserted in these Solr fields is the full dateTime format, i.e. "YYYY-MM-DDThh:mm:ssZ".

For example, for beginDate for pid: doi:10.18739/A2599Z17N (EML 2.1.1), time info is included in the metdata, but not captured by the indexer:

The <time> component is ignored by the indexer, even though the time is inserted into the Solr field (as zeros).

As this field is described as 'The starting date of the temporal range...', is capturing just the date sufficient?