[opencms-dev] Lucene search: Change default operator

Ernesto De Santis opencms at colaborativa.net
Wed Apr 5 14:10:22 CEST 2006


You try to use the lucene method directly?

I think that this will be work.
Is a static method.

Regards
Ernesto.

Robert Petermeier escribió:
> Hi,
> 
> is there a way to change the default logical operator for search queries 
> from OR to AND? I know that this is easily done with Lucene
> (org.apache.lucene.queryParser.QueryParser#setDefaultOperator())
> but after reviewing CmsSearch.java and CmsSearchIndex.java I don't think 
> it is easily possible with OpenCms (see CmsSearchIndex#search(), where 
> the query that is finally passed on to Lucene is constructed).
> 
> I can hardly believe that I am the first one who wants to do this, as 
> the usage of "OR" as default is different from how google and other 
> search engines parse queries, which is what people are used to.
> 
> 
> Bye,
> Robert
> 
> _______________________________________________
> 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
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencms.vcf
Type: text/x-vcard
Size: 263 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060405/3e833f69/attachment.vcf>


More information about the opencms-dev mailing list