Solr does support a Date Range field, though it is not super documented:
https://cwiki.apache.org/confluence/display/solr/Working+with+Dates
http://wiki.apache.org/solr/DateRangeField
https://issues.apache.org/jira/browse/SOLR-6103

There is also an older trick of using Spatial to index date ranges. It
takes a bit to wrap the head around, but is quite interesting.
https://wiki.apache.org/solr/SpatialForTimeDurations

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 16 August 2016 at 21:51, solr2020 <psgoms...@gmail.com> wrote:
> Hi,
>
> We have list of events with events start date and end date.for eg:
> event1 starts @ 2nd Aug 2016 ends @ 3rd Aug 2016
> event2 starts @ 4th Aug 2016 ends @ 5th Aug 2016
> event3 starts @ 1st Aug 2016 ends @ 7th Aug 2016
> event4 starts @ 15th july 2016 ends @ 15th Aug 2016
>
> when user selects a date range Aug 2nd to Aug 5th 2016 we are able to fetch
> event1 and event2 with start and end date range query (Aug 2nd  TO Aug 5th
> ). But as event3 and event4 are also an ongoing event we need to fetch that
> . how this can be achieved?
>
> Thanks.
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/solr-date-range-query-tp4291918.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to