[opencms-dev] Leading wildcard in Lucene Search / Searching for binaries

Eska sven.kiesow at interone.de
Fri Oct 16 09:49:53 CEST 2009


Hi Jonathan,

why don't you use a special index for your advanced search where you use
an index source having only msword, msexcel or pdf as the defined document 
types?

Eska


Jonathan Plettenberg wrote:
> 
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> I'm trying to build an advanced search, and wanted to refine the search,
> and only search for binary-documents of a specific type (pdf, doc, xls
> ...)
> I know that the lucene index saves the path to the documents, stored in
> OpenCms...
> 
> So my search lucene-query will look like
> "path: *.doc"
> 
> But I'm getting no results and no error, it seems that it is not
> possible to search with a wildcard at the beginning...
> I know that there is an option in the lucene search like
> "allowLeadingWildcard"...
> 
> But how to set this in OpenCms?
> 
> Maybe anyone has an idea, or knows how to solve the problem...
> 
> Thanks
> 
> Jonathan
> 
> -- 
> componio GmbH
> Robert-Bosch-Straße 7
> D - 64293  Darmstadt
> Tel:    +49.6151.500.367.15
> Office:    +49.6151.500.367.0
> Fax:    +49.6151.500.367.6
> Internet: http://www.componio.net 
> E-Mail:    jonathan.plettenberg at componio.net 
> HRB 9624 - Registergericht Amtsgericht Darmstadt
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
View this message in context: http://www.nabble.com/Leading-wildcard-in-Lucene-Search---Searching-for-binaries-tp25913453p25921183.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list