cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene queries (date, mimetype)

guidow
Champ in-the-making
Champ in-the-making
I have some problems using Lucene for searching using particular metadata.

How can I query the repository for all documents created in a particular date range? Typing "@cm\:created:[2007-07-01 TO 2007-07-05]"
into the Node Browser Lucene search gives me a NullPointerException.

How can I query the repository for all documents of a particular mimetype?
(e.g., all PDF documents). The mimetype seems to appear in cm:content,   but @cm\:content:"mimetype=application/pdf" finds nothing.

Thanks+Cheers,
  Guido
1 REPLY 1

dhalupa
Champ on-the-rise
Champ on-the-rise
For date range query you could try

   @cm\:created:[2007-07-01T00:00:00 TO 2007-07-05T00:00:00]

For mimetype try
   @cm\:content.mimetype:"application/pdf"

More info could be found here

http://wiki.alfresco.com/wiki/Search#Lucene