[TYPO3-Solr] query.boostQuery or query.boostFunction for custom doktype(s)

raka raka86 at gmx.de
Mon Sep 17 17:50:17 CEST 2012


hi,

separating them by using spaces should work:

plugin.tx_solr.search.query.boostQuery = (myDoktype_intS:44)^10 (myDoktype_intS:33)^9 (myDoktype_intS:55)^8

raka

Am 17.09.2012 17:36, schrieb Hendrik Nadler:
> Hi all,
>
> i got some custom page-types in a TYPO3 installation, e.g. (doktype=) 33, 44 or 55. The doktype ist written in a custom Solr-field. In the search results 44 should be more important than 33 which is more important than 55.
>
> To simplify it: 44 > 33 > 55
>
> The wiki mentions this example:
>
>> Example (boosts tt_news documents by factor 10):
>> plugin.tx_solr.search.query.boostQuery = (type:tt_news)^10
> Works fine for me, but how do I add multiple boostQueries like "(myDoktype_intS:44)^10, (myDoktype_intS:33)^9, (myDoktype_intS:55)^8" ?
>
> Do I need a boostFunction here? Im stuck...
>
> Thanks for your help and regards,
> Hendrik
> _______________________________________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr



More information about the TYPO3-project-solr mailing list