lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: How to boost documents ?
Date Mon, 16 Dec 2013 13:00:25 GMT
Hi Anca,

Can you try following URL?



q=beautiful Christmas tree&mm=2&qf=title^12 description^2&defType=dismax&bf=map(query($qq),0,0,0,100.0)&qq={!dismax
qf='title description' mm=100%}beautiful Christmas tree

Modified from Jan's solution. See his original post [1] to a similar discussion.
[1] http://search-lucene.com/m/nK6t9j1fuc2





On Monday, December 16, 2013 12:19 PM, Anca Kopetz <anca.kopetz@kelkoo.com> wrote:

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

-- 

Anca Kopetz Software engineer

Eanca.kopetz@kelkoo.com  Y!Messenger kelkooancak
T +33 (0)4 56 09 07 55        
A 4/6 Rue des Meridiens 38130 Echirolles   
________________________________
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