Re: Date Fields

2010-06-29 Thread liat oren
I was afraid this would be the answer.. Thanks a lot! Liat On 29 June 2010 12:03, Ian Lea wrote: > How are you searching? If looking for exact dates I guess you could > make it work by passing in the exact value but ranges would be > challenging. > > My advice would be to upgrade to a current v

Re: Date Fields

2010-06-29 Thread Ian Lea
How are you searching? If looking for exact dates I guess you could make it work by passing in the exact value but ranges would be challenging. My advice would be to upgrade to a current version of Lucene and reindex everything with the date as a NumericField. -- Ian. On Tue, Jun 29, 2010 at

Date Fields

2010-06-29 Thread liat oren
Hi all, I made a mistake, finished indexing all my database (millions of documents..), regarding field dates as usual fields. Instead of doing: doc.add(Field.Keyword("indexDate", new Date()); I added it as: doc.add(new Field("indexDate", String.valueOf(new Date().toString()), Field.Store.YES, Fiel

Re: Filtering on two date fields simultaneously

2009-10-01 Thread Dragan Jotanovic
propriate. >> In my lucene document, I have two date fields: start and end date. >> As a search input I have current date (NOW). >> I need to display all documents for which current date is between >> start and end dates. >> >> I know that this could be performe

Re: Filtering on two date fields simultaneously

2009-10-01 Thread Grant Ingersoll
On Sep 29, 2009, at 11:30 AM, Dragan Jotanovic wrote: Hi, I was thinking a long time how to implement this kind of functionality but couldn't figure out anything appropriate. In my lucene document, I have two date fields: start and end date. As a search input I have current date (NOW). I

Filtering on two date fields simultaneously

2009-09-29 Thread Dragan Jotanovic
Hi, I was thinking a long time how to implement this kind of functionality but couldn't figure out anything appropriate. In my lucene document, I have two date fields: start and end date. As a search input I have current date (NOW). I need to display all documents for which current date is be