Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E7A210801 for ; Mon, 16 Dec 2013 13:01:01 +0000 (UTC) Received: (qmail 94893 invoked by uid 500); 16 Dec 2013 13:00:56 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 94728 invoked by uid 500); 16 Dec 2013 13:00:55 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 94716 invoked by uid 99); 16 Dec 2013 13:00:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 13:00:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.38] (HELO nm14-vm1.bullet.mail.ne1.yahoo.com) (98.138.91.38) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Dec 2013 13:00:47 +0000 Received: from [98.138.100.114] by nm14.bullet.mail.ne1.yahoo.com with NNFMP; 16 Dec 2013 13:00:25 -0000 Received: from [98.138.89.248] by tm105.bullet.mail.ne1.yahoo.com with NNFMP; 16 Dec 2013 13:00:25 -0000 Received: from [127.0.0.1] by omp1040.mail.ne1.yahoo.com with NNFMP; 16 Dec 2013 13:00:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 700627.89291.bm@omp1040.mail.ne1.yahoo.com Received: (qmail 62271 invoked by uid 60001); 16 Dec 2013 13:00:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1387198825; bh=vtMULQEneO00zUxyQBTI2cM4RFGogfW+rX7733Z+yLw=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Yuux3Lv96UJPMc5hHZOKLy3L6+WlezBGb1VSmHZypKt/PzDsNVFRtSH30BwraDKQXOcYmLTXwP5xaZVxGdZ+sxnUCz5qBjYT+bJDbB9WVjI8P2iOMvwQAZ08LcbKouy4RYzHDC2KSkC3dSyZgdPoN8RTQ9sqkEAPoZMoxG5Xwak= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FspGJtO9Klt9cQk3QfZ03v4LYvTLsEdqR3IXevQ6NnsxCuZo43O0GxHJz3dIf6O/46IcJNrPhqZcZ4IgSu2GLj6ZSXuInRdmcN1dacH3VDYTh0lJSmwQHwylAYmp+Dv6BrlxoYDkll+iYGfWzskcJ1G7R/1hMbc0iHZvdc+TTMQ=; X-YMail-OSG: gdH2Hi4VM1nO1MeNe_TPEei4RVkpGRsrXgOVRbnBhC.h5PU FPcuhFMyskiUTNDHZvke07DhvAmWTnNV20YDYBfbYwQRCthoWA0ZOf0vxbrd 9pMGfsZUgm_3I_.LK84wOBA.gscGSn0QROYMletdduuMLCY8gy3_EkdqiYE_ TbrvCWKl9jyh2EAgaWelJQMGIpUEkV5eKqHn8R5E7eOz9QY5c_r940qDP.T2 _p1VkWltywh4lW7E5k8BuRAughMQ6zrJfXU5oEmTlPoaGrjpxYiAH0S_x7zF E1wqLdD9ShO1In2PJlCuSRUzpFyWTTLzCTiiUhN4hGTvyU6hxKi0E9PbZp9j nOcX00uO03RZ1yrnJoiJKrmyXOQQNJ7ZRmSv55HOzyf8bu8YDAYaZb1bKV8z ytXBy1KJb9uCaowd2aTgjh9_J71sgbqAM3mhvwZQP0R5swjeaUd1veNKU3gI x7HsMzJTd1Q_ZTRKZ7fWyUsRJ.Kte.G1.TzyJQo9lbI1K6s.gh4hckB05EhX 7U3spUtNmctjInnj98rjFBlWdjeNlU.M.h4DWV.7TeQj8iy.GKqITUonAm2W t3d_YylYLmVV.ScFSzRQWseinpdVCSETrIcmZGYXp7B8lI16cta4T96WwxTX lvHe8fjFEsd4Wl.zzLz.8_bOowTKOJpZlu_Gc4CcVWhan Received: from [193.140.16.102] by web125303.mail.ne1.yahoo.com via HTTP; Mon, 16 Dec 2013 05:00:25 PST X-Rocket-MIMEInfo: 002.001,SGkgQW5jYSwKCkNhbiB5b3UgdHJ5IGZvbGxvd2luZyBVUkw_CgoKCnE9YmVhdXRpZnVsIENocmlzdG1hcyB0cmVlJm1tPTImcWY9dGl0bGVeMTIgZGVzY3JpcHRpb25eMiZkZWZUeXBlPWRpc21heCZiZj1tYXAocXVlcnkoJHFxKSwwLDAsMCwxMDAuMCkmcXE9eyFkaXNtYXggcWY9J3RpdGxlIGRlc2NyaXB0aW9uJyBtbT0xMDAlfWJlYXV0aWZ1bCBDaHJpc3RtYXMgdHJlZQoKTW9kaWZpZWQgZnJvbSBKYW4ncyBzb2x1dGlvbi4gU2VlIGhpcyBvcmlnaW5hbCBwb3N0IFsxXSB0byBhIHNpbWlsYXIgZGlzY3Vzc2kBMAEBAQE- X-Mailer: YahooMailWebService/0.8.170.612 References: <52AED43A.2040408@kelkoo.com> Message-ID: <1387198825.79957.YahooMailNeo@web125303.mail.ne1.yahoo.com> Date: Mon, 16 Dec 2013 05:00:25 -0800 (PST) From: Ahmet Arslan Reply-To: Ahmet Arslan Subject: Re: How to boost documents ? To: "solr-user@lucene.apache.org" In-Reply-To: <52AED43A.2040408@kelkoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Anca,=0A=0ACan you try following URL?=0A=0A=0A=0Aq=3Dbeautiful Christmas= tree&mm=3D2&qf=3Dtitle^12 description^2&defType=3Ddismax&bf=3Dmap(query($q= q),0,0,0,100.0)&qq=3D{!dismax qf=3D'title description' mm=3D100%}beautiful = Christmas tree=0A=0AModified from Jan's solution. See his original post [1]= to a similar discussion.=0A[1] http://search-lucene.com/m/nK6t9j1fuc2=0A= =0A=0A=0A=0A=0AOn Monday, December 16, 2013 12:19 PM, Anca Kopetz wrote:=0A=0AHi,=0A=0AHow to boost documents that contain al= l search terms in several of its fields ?=0A=0ABelow you cand find a simpli= fied example : =0A=0AThe query with Min should match:=0Aq=3Dbeautiful Chris= tmas tree&mm=3D2&qf=3Dtitle^12 description^2=0A=0AThere are two offers that= match the query : =0Aoffer1 {title:"Christmas tree", description:"a joy fo= r children"}=0A=0Aoffer2 {title:"Christmas tree", description:"beautiful fo= r holidays"}}=0A=0AThe first offer ranks before the second, despite of the = fact that the second one contains all the search terms. I tried to play wit= h the boosts of qf, but the results vary a lot.=0A=0AIs there a way to add = a boost on all search fields, the same way we do with pf on one field : pf= =3Dtitle:2^3.0 ?=0A=0AThank you,=0AAnca=0A=0A-- =0A=0AAnca Kopetz Software = engineer=0A=0AEanca.kopetz@kelkoo.com=C2=A0=C2=A0Y!Messenger kelkooancak=0A= T +33 (0)4 56 09 07 55 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =0AA 4/6 Rue de= s Meridiens 38130 Echirolles=C2=A0=C2=A0 =0A_______________________________= _=0AKelkoo SAS=0ASoci=C3=A9t=C3=A9 par Actions Simplifi=C3=A9e=0AAu capital= de =E2=82=AC 4.168.964,30=0ASi=C3=A8ge social : 8, rue du Sentier 75002 Pa= ris=0A425 093 069 RCS Paris=0A=0ACe message et les pi=C3=A8ces jointes sont= confidentiels et =C3=A9tablis =C3=A0 l'attention exclusive de leurs destin= ataires. Si vous n'=C3=AAtes pas le destinataire de ce message, merci de le= d=C3=A9truire et d'en avertir l'exp=C3=A9diteur.