lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How to filter data based on dates?
Date Fri, 12 Jun 2009 14:03:18 GMT
Why wouldn't two RangeQuerys work for this? Essentially something expressing
startdate[0 TO Systemtime] AND enddate[Systemtime TO infinity]?

Best
Erick


On Fri, Jun 12, 2009 at 1:00 PM, Muhammad Momin Rashid <momin@abdere.com>wrote:

> Hello Everyone,
>
> I need to filter records based on whether current system date is between
> startDate and endDate of a record.  Could someone guide me on this one?
>
> (Current Date >= startDate)
> and
> (endDate == null || Current Date <= endDate)
>
> Regards,
> Muhammad Momin Rashid.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message