Hi, Thank you for your response.
When I try the URL you sent me, I get the following error message : org.apache.solr.search.SyntaxError: Infinite Recursion detected parsing query 'beautiful Christmas tree' Any idea what this means ? Best regards, Anca On 12/16/2013 02:00 PM, Ahmet Arslan wrote: 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.kop...@kelkoo.com><mailto:anca.kop...@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 ________________________________ 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.