Lucene Query Issues
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 03:28 AM
Hi all,
I want to search the file which the filename is "PDF", when I use the following query to search the repository, it will return all files which the name contains "PDF", is it possible to search the file with exact match mode?
Query query = new Query(Constants.QUERY_LANG_LUCENE, "@cm\\:name:\"PDF\"");
Best Regards,
Peter
I want to search the file which the filename is "PDF", when I use the following query to search the repository, it will return all files which the name contains "PDF", is it possible to search the file with exact match mode?
Query query = new Query(Constants.QUERY_LANG_LUCENE, "@cm\\:name:\"PDF\"");
Best Regards,
Peter
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 12:40 PM
Did you know you could search specifically by mimetype? Then it doesn't matter how the files are named:
@cm\:content.mimetype:"application/pdf"
Jeff
@cm\:content.mimetype:"application/pdf"
Jeff
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 09:13 PM
Did you know you could search specifically by mimetype? Then it doesn't matter how the files are named:
@cm\:content.mimetype:"application/pdf"
Jeff
Hi Jeff,
I know that I can search the repository by mimetype, the word "PDF" is an example. I just want to know is it possible to search a string with exact match mode.
Best Regards,
Peter