Hello Shi Yusen,<br>
<br>
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<br>
<br>
Thanks and best wishes for 2006<br>
<br>
Regards <br>
<br>
Benoit<br><br><div><span class="gmail_quote">2005/12/17, Shi Yusen <<a href="mailto:shiys@langhua.cn">shiys@langhua.cn</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Hi Benoit,</span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">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.</span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Regards,</span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Shi Yusen/Beijing Langhua Ltd.</span></font></p>
<div>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
</div>
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">
<hr align="center" size="3" width="100%">
</span></font></div>
<p><b><font face="宋体" size="2"><span style="font-size: 10pt; font-weight: bold;">发件人<span lang="EN-US">:</span></span></font></b><font face="宋体" size="2"><span style="font-size: 10pt;" lang="EN-US"> Benoit
Joseph [mailto:<a href="mailto:benoit.joseph@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">benoit.joseph@gmail.com</a>] <br>
</span></font><b><font face="宋体" size="2"><span style="font-size: 10pt; font-weight: bold;">发送时间<span lang="EN-US">:</span></span></font></b><font face="宋体" size="2"><span style="font-size: 10pt;" lang="EN-US"> 2005</span>
</font><font face="宋体" size="2"><span style="font-size: 10pt;">年<span lang="EN-US">12</span>月<span lang="EN-US">16</span>日<span lang="EN-US"> 18:50<br>
</span><b><span style="font-weight: bold;">收件人<span lang="EN-US">:</span></span></b><span lang="EN-US"> <a href="mailto:opencms-dev@opencms.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">opencms-dev@opencms.org
</a><br>
</span><b><span style="font-weight: bold;">主题<span lang="EN-US">:</span></span></b><span lang="EN-US"> [opencms-dev] how to do lucene direct search query??</span></span></font><span lang="EN-US"></span></p>
</div><div><span class="e" id="q_108363786d0233d3_1">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"><br>
Hello,<br>
<br>
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.<br>
<br>
My problem is I need to make some special lucene query <br>
<br>
something like<br>
<br>
my_indexed_property:myValue AND my_indexed_date:[20051216 TO 20051231]<br>
<br>
I don't see how I can do that. <br>
<br>
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...<br>
<br>
Can you tell me a way to pass a "raw" query to the lucene index
without modifying to much the opencms search core?<br>
<br>
Thanks in advance<br>
<br>
Regards,<br>
<br>
Benoit</span></font></p>
</span></div></div>
<br><br><br>_______________________________________________<br>This mail is send to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.opencms.org/mailman/listinfo/opencms-dev" target="_blank">
http://mail.opencms.org/mailman/listinfo/opencms-dev</a><br><br></blockquote></div><br>