cancel
Showing results for 
Search instead for 
Did you mean: 

Date-range

buurd
Champ in-the-making
Champ in-the-making
Hi!

I'm trying to write a lucene-query that should return all documents created during a specified period of time. In my search my query seems to work sometimes but not always and when I try to run the query in the nodebrower I only get a single space instead of the documents that I know have been created during that time.

I have tried a lot of date-formats but noone seems to work:

( +@cm\:created:[20100501T00:00:00.000 TO 20100628T00:00:00.000] )
( @cm\:created:[20100501 TO 20100628] )
(  @cm\:created:[20100501 TO 20100628] )

Any ideas of what I'm doing wrong? What is the correct syntax?

Thanks in advance
Roland
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
There are examples on this page http://wiki.alfresco.com/wiki/Search

ywxiong
Champ in-the-making
Champ in-the-making
String luceneXpath="+@cm\\:created:[2010\\-08\\-27T10:46:36.537+08:00 TO 2010\\-12\\-17T00:00:00] "