[opencms-dev] how to do lucene direct search query??

Benoit Joseph benoit.joseph at gmail.com
Mon Dec 19 11:54:35 CET 2005


Hello Shi Yusen,

Thanks for the answer, for my needs, it is better to extend
CmsXmlPageDocument  and to specify it in the search config file. So I don't
need to rebuild opencms! Nevertheless, your info about setBoost is very
valuable to me

Thanks and best wishes for 2006

Regards

Benoit

2005/12/17, Shi Yusen <shiys at langhua.cn>:
>
>  Hi Benoit,
>
>
>
> Please check org.opencms.search.documents.A_CmsVfsDocument.java, add your
> my_indexed_property in it, remove "field.setBoost(0);" for lastmodified if
> your query string include lastmodified:[20051216 TO 20051231]. Rebuild
> opencms.jar, rebuild index, your query should work then.
>
>
>
> Regards,
>
>
>
> Shi Yusen/Beijing Langhua Ltd.
>
>
>   ------------------------------
>
> *发件人:* Benoit Joseph [mailto:benoit.joseph at gmail.com]
> *发送时间:* 2005年12月16日 18:50
> *收件人:* opencms-dev at opencms.org
> *主题:* [opencms-dev] how to do lucene direct search query??
>
>
>
>
> Hello,
>
> I'm making custom dev based on opencms 6.0.x. I've already extended
> CmsDocumentXmlPAge to suit my needs and i have configured the source and
> index. All that is working.
>
> My problem is I need to make some special lucene query
>
> something like
>
> my_indexed_property:myValue AND my_indexed_date:[20051216 TO 20051231]
>
> I don't see how I can do that.
>
> I do not understand very well how the opencms query is built. My feeling
> is all the input search terms are ORed and compared against  each  selected
> fields. Am I right? If yes, we loose a lot of search features provided by
> Lucene...
>
> Can you tell me a way to pass a "raw" query to the lucene index without
> modifying to much the opencms search core?
>
> Thanks in advance
>
> Regards,
>
> Benoit
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051219/b39dd9e7/attachment.htm>


More information about the opencms-dev mailing list