[opencms-dev] how to do lucene direct search query??
Shi Yusen
shiys at langhua.cn
Sat Dec 17 01:54:57 CET 2005
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051217/e942e045/attachment.htm>
More information about the opencms-dev
mailing list