Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 13086 invoked from network); 7 Jul 2009 19:08:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 19:08:50 -0000 Received: (qmail 30829 invoked by uid 500); 7 Jul 2009 19:07:48 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 30556 invoked by uid 500); 7 Jul 2009 19:07:47 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 29947 invoked by uid 99); 7 Jul 2009 19:04:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 19:04:24 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [77.238.184.75] (HELO smtp144.mail.ukl.yahoo.com) (77.238.184.75) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Jul 2009 19:04:13 +0000 Received: (qmail 38770 invoked from network); 7 Jul 2009 19:03:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=4oQNltNnBuhfNHAFcuW3ADzKO9nNPMjNlMXTAQdO6EDGdYBVXN4Vh8xgiKbhvWm/Fe+7wC3mYeRMVMXSTNAfqKTOPMDwBpF30nqI6AqrrSwGXOpUMEZIax2Mr8e5ahR0RQIx/BBZv+92UwQEzPKfaC0fQMyRD5mFTpBeYi5vTBA= ; Received: from unknown (HELO ?192.168.2.50?) (markharw00d@194.106.34.5 with plain) by smtp144.mail.ukl.yahoo.com with SMTP; 7 Jul 2009 19:03:50 -0000 X-Yahoo-SMTP: zTNABayswBADoI1EHkfx1KN3qDu5p6Ws X-YMail-OSG: AN.xhS0VM1k0c.pJXw3K1kUDbWggZm9IhbrLv0xDRMnyTDnu0PjPXKotAz8VqI1aBOO90mvU3p5sm7fEmGiaVnpIBRBUvyWfV.MFnCWx2I8Q_sUdTniplG9ABz_j5zOl0sdKXopfF9OUJiiX2V5B57QsSZ8ocy4JppCs2AITP2Ti4tPJsBo_xUFvmMgnmWo94mwbiPk00TsQKDKjnqBvL99bNqQ_R2XmFISYVY7BMdz8ZZdBpb6_2e6GruMKgSkPSWwUzZ2CD8mAhhXMkPoAZdJ83gRnPbm0kBP4gXkjZkWd8AVoAQ-- X-Yahoo-Newman-Property: ymail-3 Message-Id: From: Mark Harwood To: java-user@lucene.apache.org In-Reply-To: <24378975.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Multi Value field Date: Tue, 7 Jul 2009 20:03:48 +0100 References: <24378975.post@talk.nabble.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org > if the term is "X Y" the document 2 is getting higher score then > document 1. That may be length normalisation at play. Doc 2 is shorter so may be seen as a better match for that reason. Using the "explain" function helps illustrate the break down of scores in matches. You could try indexing that field without "norms" or use a custom Similarity at query time to ignore the length normalisation factor. Cheers Mark On 7 Jul 2009, at 19:31, John Seer wrote: > > Hello, > > I have 100k index with documents with one searchable field in it. > That > field has multiple values for example > > doc( search: X search : X Y search: X Y Z id:1) > doc( search: X Y K id:2) > > I am using Standard Analyzer for building and searching, and having > problem > with scores > > if the term is "X Y" the document 2 is getting higher score then > document 1. > > > Please can someone suggest way that doc 1 will score higher? > Maybe I need to use some specific query type? > > Thanks > > > > -- > View this message in context: http://www.nabble.com/Multi-Value-field-tp24378975p24378975.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org