I have search query whith a special situation:
if the search query matches or contanis the title of a document then the
score value schould be higher than in the body of the rest of this document:
<#if searchoptions.isSearchInContent()>
<d:and>
<s:property-contains>
<d:prop><h:title></d:prop>
<d:literal>${searchOptions.searchQuery}</d:literal>
</<s:property-contains>
</d:and>
<s:propsearch>
<d:prop><h:title/></d:prop>
<d:literal>*${searchOptions.searchQuery}*^8</d:literal>
</s:propsearch>
<#else>
<s:propsearch>
<d:prop><h:title/></d:prop>
<d:literal>*${searchOptions.searchQuery}*^1</d:literal>
</s:propsearch>
...
Thnaks in advanced
--
View this message in context:
http://old.nabble.com/complex-dasl-query-tp28743656p28743656.html
Sent from the Hippo CMS development public mailinglist mailing list archive at
Nabble.com.
********************************************
Hippocms-dev: Hippo CMS 6 development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html