Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 47147 invoked from network); 13 Jun 2010 15:59:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jun 2010 15:59:53 -0000 Received: (qmail 91736 invoked by uid 500); 13 Jun 2010 14:10:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 91683 invoked by uid 500); 13 Jun 2010 14:10:31 -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 91675 invoked by uid 99); 13 Jun 2010 14:10:31 -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:10:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of naamakraus@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jun 2010 14:10:25 +0000 Received: by wwb13 with SMTP id 13so2080778wwb.35 for ; Sun, 13 Jun 2010 07:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=4yslfLG7WFRt2YWCYkUIwfOUM+cuWrfUbfWooxEH9g4=; b=Lck7hk72bEKtOs8wyylodEN0Aa2NIr7KQgJj02d5kOmlJDitFrtppEjjB6b3ia9ljI IHPW9Lgo3FekqltBRCeJbzLOGTrM204kQmsjbjlCWMiaJvrEeFI+nj9grCvhjQlIw3oy /j9ccruRbB9oOs2qLDCk9kh1ml1+VpO+tA0pg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=cSal4lC+qKVUqGCvm44iZp//XoqDDQc9j4kQJVy0FLzeZK/G+u1lJTj4PWeJExfvbt PLl/rHWRy3tVGoof/ZSQCSSUhI82OZoJjEHFYDtm57+rcrhpKqO96j39ySngI2KtNABP BDHKr2Pq91qjzzH07Otrh9zqr1G+Y83p/jTL8= Received: by 10.216.172.80 with SMTP id s58mr1208929wel.60.1276438204203; Sun, 13 Jun 2010 07:10:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.91.11 with HTTP; Sun, 13 Jun 2010 07:09:44 -0700 (PDT) In-Reply-To: References: From: Naama Kraus Date: Sun, 13 Jun 2010 17:09:44 +0300 Message-ID: Subject: Re: Scores equality To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001636416aa1bd41f40488e9edd5 --001636416aa1bd41f40488e9edd5 Content-Type: text/plain; charset=ISO-8859-1 Thanks a lot, this is very helpful ! Naama On Sun, Jun 13, 2010 at 5:05 PM, Erick Erickson wrote: > 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 > > > --001636416aa1bd41f40488e9edd5--