cancel
Showing results for 
Search instead for 
Did you mean: 

Attributes in Lucene date range

erik_kirs
Champ in-the-making
Champ in-the-making
Hi,

is it possible to use attributes and expressions in Lucene date range query? Using only cm:created and cm:modified attributes I need to fetch documents which have not been modified 15 days, f ex. Is it possible to do only with one Lucene query string?

Thanks in advance.
10 REPLIES 10

andy
Champ on-the-rise
Champ on-the-rise
Hi

If you are using the datetime analyser then you have to use the range as you are matching the full date time.
(ie. you have changed date time analysis)

If you use Alfresco out of the box - then only the date is put in the index (and time ignored) so the date only will work.

Andy