[opencms-dev] Sorting of searchresults
Manuel Wallnöfer
manuel.wallnoefer at msk-informatik.at
Mon Jul 14 09:04:35 CEST 2008
Hi all !
is it possible to tell the opencms search module, how to sort the hits ?
I want to have all pages with a certain template on the top of the
result list.
I found in org.opencms.search.CmsSerach a method called "|*setSortOrder
<http://files.opencms.org/javadoc/core/org/opencms/search/CmsSearch.html#setSortOrder%28org.apache.lucene.search.Sort%29>*(org.apache.lucene.search.Sort sortOrder)|".
is it possible with this method, to sort the results like that, to have
all pages with templare "xy" on the top of the list ?
Or is there a other way to do this ?
Thx for help !
~ manuel
More information about the opencms-dev
mailing list