Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 65783 invoked from network); 18 May 2006 21:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2006 21:02:23 -0000 Received: (qmail 76523 invoked by uid 500); 18 May 2006 21:02:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 76493 invoked by uid 500); 18 May 2006 21:02:17 -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 76482 invoked by uid 99); 18 May 2006 21:02:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 14:02:17 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of yseeley@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 14:02:17 -0700 Received: by py-out-1112.google.com with SMTP id c39so678870pyd for ; Thu, 18 May 2006 14:01:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M0XPO89XNRbvrTvkNiTdoVgIUpKkn6Sk7IaB3XJUaNkM0mesv0dScVYW98Eo0SfinyS7gQ8zfazW+baA0kvu504vx0D/6sJ9OKjxIb1OZsKTmVg6cNtoUt+UZ+1J/9dp/deNAHT+92O6zTbYYTr5SF3iUrMxUt4wp9Z6g9JZE4k= Received: by 10.35.107.20 with SMTP id j20mr1027160pym; Thu, 18 May 2006 14:01:56 -0700 (PDT) Received: by 10.35.107.3 with HTTP; Thu, 18 May 2006 14:01:56 -0700 (PDT) Message-ID: Date: Thu, 18 May 2006 17:01:56 -0400 From: "Yonik Seeley" To: java-user@lucene.apache.org Subject: Re: Sort problematics In-Reply-To: <8834A84C87A2C148AD46921BB8BFC97C33B5DD@S1SE1MAIL.emea1.ad.group> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8834A84C87A2C148AD46921BB8BFC97C33B5DD@S1SE1MAIL.emea1.ad.group> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 5/18/06, Marcus Falck wrote: > If i use lucene default implementation of the TermScorer and search for > > "you" OR "her" > > The term scorer will give higher score on documents containing both terms= . This is a problem (in our application) since in this case want the same s= core on documents as long as they contain 1 of the terms If this is your problem, it has nothing to do with "sorting" (using Lucene terminology) but scoring. There are numbers of ways: 1) Change Similarity.coord() (read the JavaDoc for Similarity) 2) DisjunctionMaxQuery 3) query "you" and "her" separately and use the union of the results -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org