[TYPO3-Solr] prioritization in search results

Ingo Renner ingo at typo3.org
Fri Feb 3 17:01:56 CET 2012


Am 03.02.12 10:54, schrieb Peter Kraume:

Hi Peter,

> Is it possible to do a prioritization in the search results so that
> results from the product content type are always displayed preferred?

ok ok, I guess you were asking *how* to do it? :)

a boost query is your friend here:
http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29

plugin.tx_solr.search.query.boostQuery = (type:tt_news)^10

would boost tt_news results by a factor of 10...



best
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of Code

TYPO3 - Open Source Enterprise Content Management System
http://typo3.org

Apache Solr for TYPO3 -
Open Source Enterprise Search meets Open Source Enterprise CMS
http://www.typo3-solr.com


More information about the TYPO3-project-solr mailing list