You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2009/02/02 23:29:47 UTC

Re: Date range query where doc has more than one date field

: i have a doc which has more than one datefield. they are start and end. now
: i need the user to specify a date range, and i need to find all docs which
: user range is between the docs start and end date fields.

Assuming i'm understanding the question...
http://www.lucidimagination.com/search/document/324344f13c4d34fa/date_range_query_fields

  +startDate:[* TO $user_low] +endDate:[$user_high TO *]

...ie: the start date must be before the low point of the range the user 
specified, and the end date must be after the high point of the range the 
userspecified.





-Hoss