Lucene queries (date, mimetype)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 11:37 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 11:46 AM
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
@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
