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

raka raka86 at gmx.de
Mon Sep 17 18:43:26 CEST 2012


yes, you're right. sorry. thought that works.

Am 17.09.2012 18:13, schrieb Hendrik Nadler:
> Hi,
>
> i tried that (should have mentioned that of course), the (raw) query built by the extension is:
>
> [...] &bq=(doktype_intS:44)^10 (doktype_intS:33)^9 (doktype_intS:55)^8 [...]
>
> I don't think that is working, because if I modify the second or third parameter the result stays the same.
>
> Regards, Hendrik
>
> -----Ursprüngliche Nachricht-----
> Von: raka [mailto:raka86 at gmx.de]
> Gesendet: Montag, 17. September 2012 17:50
> An: Apache Solr search for TYPO3 project
> Betreff: Re: [TYPO3-Solr] query.boostQuery or query.boostFunction for custom doktype(s)
>
> 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
> _______________________________________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
> _______________________________________________
> 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