Date range searching - index field support

Project:RUcore SOLR Searching and Indexing

In support of the OA initiative I need a Solr index field type DateField to support date range searching.

The initial specification entry can be found here, item #4.

<a href="" title=""></a>

I need a field that uses the logic in the specification to determine date and store it in the index. I am going to query Solr using the following guide:

<a href="" title=""></a>

Note in the guide the date value stored needs to...

"...note that if you use the Solr "DateField" type, any queries on those fields (typically range queries) should use either the Complete ISO 8601 Date syntax that field supports, or the DateMath Syntax to get relative dates."

I need this for my own 7.5 development.



Status:active» test

I've created a new, dynamic Solr dt field called sortdate_dt based on the integer sortdate_i, which already follows the algorithm set out in the May 7th spec. These dates don't have the time info for UTC dates, so I've added in zeros in these fields. Thus a sortdate_i of 20101001 becomes sortdate_dt 2010-10-01T00:00:00.000Z. I'm running portalcron refreshType=fedora now on devel (about 4% complete at the moment). It should be ready for testing in an hour or so.


Status:test» fixed

Thanks, works as expected.


Status:fixed» closed

Back to top