lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anca Kopetz <anca.kop...@kelkoo.com>
Subject How to boost documents ?
Date Mon, 16 Dec 2013 10:21:46 GMT
Hi,

How to boost documents that contain all search terms in several of its fields ?

Below you cand find a simplified example :

The query with Min should match:
q=beautiful Christmas tree&mm=2&qf=title^12 description^2

There are two offers that match the query :
offer1 {title:"Christmas tree", description:"a joy for children"}

offer2 {title:"Christmas tree", description:"beautiful for holidays"}}

The first offer ranks before the second, despite of the fact that the second one contains
all the search terms. I tried to play with the boosts of qf, but the results vary a lot.

Is there a way to add a boost on all search fields, the same way we do with pf on one field
: pf=title:2^3.0 ?

Thank you,
Anca
--
[cid:part1.06040905.02040506@kelkoo.com]

Anca Kopetz Software engineer

E anca.kopetz@kelkoo.com<mailto:anca.kopetz@kelkoo.com>  Y!Messenger kelkooancak
T +33 (0)4 56 09 07 55
A 4/6 Rue des Meridiens 38130 Echirolles


[cid:part3.03010103.02000304@kelkoo.com]        [cid:part4.00000304.05040904@kelkoo.com]

________________________________
Kelkoo SAS
Société par Actions Simplifiée
Au capital de € 4.168.964,30
Siège social : 8, rue du Sentier 75002 Paris
425 093 069 RCS Paris

Ce message et les pièces jointes sont confidentiels et établis à l'attention exclusive
de leurs destinataires. Si vous n'êtes pas le destinataire de ce message, merci de le détruire
et d'en avertir l'expéditeur.

Mime
View raw message