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 D891D11FFE for ; Thu, 31 Jul 2014 06:55:46 +0000 (UTC) Received: (qmail 39934 invoked by uid 500); 31 Jul 2014 06:55:42 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 39866 invoked by uid 500); 31 Jul 2014 06:55:42 -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 39855 invoked by uid 99); 31 Jul 2014 06:55:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 06:55:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thomas.engelke@posteo.de designates 89.146.194.165 as permitted sender) Received: from [89.146.194.165] (HELO posteo.de) (89.146.194.165) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 06:55:37 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.posteo.de (Postfix) with ESMTP id C031F25A2107 for ; Thu, 31 Jul 2014 08:55:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at posteo.de Received: from posteo.de ([10.125.125.178]) (using TLS) by localhost (amavis1.posteo.de [10.125.125.165]) (amavisd-new, port 10026) with ESMTPS id RnOh1RcjhAa8 for ; Thu, 31 Jul 2014 08:55:11 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by mail.posteo.de (Postfix) with ESMTPSA id F3B282C298F for ; Thu, 31 Jul 2014 08:55:10 +0200 (CEST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_e3e54ad7a36c35c77709ef3366ef6282" Date: Thu, 31 Jul 2014 08:55:10 +0200 From: Thomas Michael Engelke To: Subject: Re: Ranking based on match position in field Organization: Wehlmann Marketing GmbH In-Reply-To: <1406724521.39210.YahooMailNeo@web124705.mail.ne1.yahoo.com> References: <494539f34c8815323c294b238c5d3ff2@posteo.de> <1406724521.39210.YahooMailNeo@web124705.mail.ne1.yahoo.com> Message-ID: <8a271614a3fb9d1397c18a7ed149f35a@posteo.de> X-Sender: thomas.engelke@posteo.de User-Agent: Posteo Webmail X-Virus-Checked: Checked by ClamAV on apache.org --=_e3e54ad7a36c35c77709ef3366ef6282 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi, thanks for the link. I've upgraded from the used 4.7 to the recent 4.9 version. I've tried to use the new feature with this query in the admin interface using edismax: description:K=C3=BChler^~1^5 However, the result seems to stay the same: description:K=C3=BChler~1^5 description:K=C3=BChler~1^5 (+description:k=C3=BChler~1^5.0)/no_coord +description:k=C3=BChler~1^5.0 2.334934 =3D (MATCH) weight(description:k=C3=BChler^5.0 in 4080) [DefaultSimilarity], result of: 2.334934 =3D score(doc=3D4080,freq=3D1.0 =3D termFreq=3D1.0 ), product of: 0.99999994 =3D queryWeight, product of: 5.0 =3D boost 6.226491 =3D idf(docFreq=3D64, maxDocs=3D12099) 0.03212082 =3D queryNorm 2.3349342 =3D fieldWeight in 4080, product of: 1.0 =3D tf(freq=3D1.0), with freq of: 1.0 =3D termFreq=3D1.0 6.226491 =3D idf(docFreq=3D64, maxDocs=3D12099) 0.375 =3D fieldNorm(doc=3D4080) 2.334934 =3D (MATCH) weight(description:k=C3=BChler^5.0 in 5754) [DefaultSimilarity], result of: 2.334934 =3D score(doc=3D5754,freq=3D1.0 =3D termFreq=3D1.0 ), product of: 0.99999994 =3D queryWeight, product of: 5.0 =3D boost 6.226491 =3D idf(docFreq=3D64, maxDocs=3D12099) 0.03212082 =3D queryNorm 2.3349342 =3D fieldWeight in 5754, product of: 1.0 =3D tf(freq=3D1.0), with freq of: 1.0 =3D termFreq=3D1.0 6.226491 =3D idf(docFreq=3D64, maxDocs=3D12099) 0.375 =3D fieldNorm(doc=3D5754) Am I using this feature wrong? Am 30.07.2014 14:48 schrieb Ahmet Arslan:=20 > Hi, >=20 > Please see : https://issues.apache.org/jira/browse/SOLR-3925 [1] >=20 > Ahmet >=20 > On Wednesday, July 30, 2014 2:39 PM, Thomas Michael Engelke wrote: > Hi, >=20 > an example. We have 2 records with this data in the same field > (description): >=20 > 1: Lufthutze vor K=C3=BChler Bj 62-65, DS > 2: K=C3=BChler HY im > Austausch, Altteilpfand 250 Euro >=20 > A search with the parameters > 'description:K=C3=BChler' does provide this debug: >=20 > 2.3234584 =3D (MATCH) > weight(description:k=C3=BChler in 4053) [DefaultSimilarity], result of: >=20 > 2.3234584 =3D fieldWeight in 4053, product of: > 1.0 =3D tf(freq=3D1.0), with > freq of: > 1.0 =3D termFreq=3D1.0 > 6.195889 =3D idf(docFreq=3D69, maxDocs=3D12637) >=20 > 0.375 =3D fieldNorm(doc=3D4053) > > > 2.3234584 =3D > (MATCH) weight(description:k=C3=BChler in 5729) [DefaultSimilarity], result > of: > 2.3234584 =3D fieldWeight in 5729, product of: > 1.0 =3D tf(freq=3D1.0), > with freq of: > 1.0 =3D termFreq=3D1.0 > 6.195889 =3D idf(docFreq=3D69, > maxDocs=3D12637) > 0.375 =3D fieldNorm(doc=3D5729) >=20 > As you can see, both get > the exact same score. However, we would like to rank the second document > higher, on the basis that the search term occurs further to the left of > the field. >=20 > Is there a component/setting that can do that? Links: ------ [1] https://issues.apache.org/jira/browse/SOLR-3925 --=_e3e54ad7a36c35c77709ef3366ef6282--