[opencms-dev] Lucene search: Change default operator
Ernesto De Santis
opencms at colaborativa.net
Thu Apr 6 15:12:31 CEST 2006
But, I say that you don't use opencms API to set default operator, use
lucene.
QueryParser.setDefaultOperator(QueryParser.AND_OPERATOR);
Then, when OpenCms use QueryParser to parse queries, this will be use
AND_OPERATOR as default.
Which lucene version you use?
In lucene 1.4.3 it isn't deprecated.
The current lucene version is 1.9.x, have some methods deprecated that
will disappear in 2.0 version.
Regards
Ernesto.
Robert Petermeier escribió:
> Ernesto,
>
> Ernesto De Santis wrote:
>> You try to use the lucene method directly?
>>
>> I think that this will be work.
>> Is a static method.
>
> Actually no, it isn't. OpenCms uses only static methods of class
> QueryParser, but these are marked deprecated. And they do not allow to
> set the default operator.
>
> What I absolutely want to avoid is building my own search engine
> and,even more, modifying OpenCms code.
>
> Thanks anyway.
>
>
> 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/20060406/44cc48ff/attachment.vcf>
More information about the opencms-dev
mailing list