Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 43998 invoked from network); 13 Jun 2010 15:54:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jun 2010 15:54:52 -0000 Received: (qmail 88872 invoked by uid 500); 13 Jun 2010 14:05:30 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 88816 invoked by uid 500); 13 Jun 2010 14:05:29 -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 88808 invoked by uid 99); 13 Jun 2010 14:05:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jun 2010 14:05:29 +0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.211.186 as permitted sender) Received: from [209.85.211.186] (HELO mail-yw0-f186.google.com) (209.85.211.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jun 2010 14:05:23 +0000 Received: by ywh16 with SMTP id 16so1577249ywh.21 for ; Sun, 13 Jun 2010 07:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=SYzbIKzeRNN9Ly+HyV8fISbbsrV7XtzANSkWcA6/TCg=; b=nYXZdc41/WrOZGnogd3GChZjUTkpsau7w2JDaHn42lfOnKB45FQWPojkHVs/b+OFkT eYZrLugpT2lkYhdvtCPDI33PcX+HjcY6UqGT+Z7UTPFxn60bK4sFM2C111NVPr0/DH0S gKpoXRxatFX9pKS2e/HxhufAQGONJXdvAiAkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tRsWASrBIQPFlIEgtjaWqRInDJssstrhmh5z5MfftJ9v2bkQMCXCQlyROgeLWQ4JmL BzHyjwaJEAHTpxNDopsWlCKL9pOeNFVy5IqEW6oC8xDZPOxTrjJk2aeTrzz4W+4oVI2V 4IwGCV0+n6vDx8tXjQ+QtyfsPNB0V4Ut9FWLI= MIME-Version: 1.0 Received: by 10.150.241.17 with SMTP id o17mr5535793ybh.415.1276437902493; Sun, 13 Jun 2010 07:05:02 -0700 (PDT) Received: by 10.151.148.19 with HTTP; Sun, 13 Jun 2010 07:05:02 -0700 (PDT) In-Reply-To: References: Date: Sun, 13 Jun 2010 10:05:02 -0400 Message-ID: Subject: Re: Scores equality From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd6a716c187d10488e9db67 --000e0cd6a716c187d10488e9db67 Content-Type: text/plain; charset=ISO-8859-1 Last I knew, ties were decided by the internal document id. you can control this any way you want, just include a Sort object in your query with multiple SortFields. Two pre-defined SortFields types you can use are FIELD_SCORE and FIELD_DOC and you can add any number of other fields to sort by, see the API for Sort and SortField... The default is pretty much equivalent to a Sort object with two SortFields, the two mentioned above... HTH Erick On Sun, Jun 13, 2010 at 9:38 AM, Naama Kraus wrote: > Hi All, > > I wanted to ask regarding search results scores equality: > In case two documents get an equal score - how does Lucene "break" equality > ? > I.e. by which criteria one document would be ranked before another ? Random > ? Indexing time ? Anything else ? > Can I control this one somehow ? > (I am using Lucene 3). > > Thanks for the input, > Naama > --000e0cd6a716c187d10488e9db67--