Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32354 invoked from network); 29 Oct 2005 00:25:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Oct 2005 00:25:23 -0000 Received: (qmail 30947 invoked by uid 500); 29 Oct 2005 00:25:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 30922 invoked by uid 500); 29 Oct 2005 00:25:18 -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 30911 invoked by uid 99); 29 Oct 2005 00:25:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 17:25:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 17:25:15 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id E68225B806; Fri, 28 Oct 2005 17:24:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id E4FEB7F476 for ; Fri, 28 Oct 2005 17:24:52 -0700 (PDT) Date: Fri, 28 Oct 2005 17:24:52 -0700 (PDT) From: Chris Hostetter Sender: hossman@hal.rescomp.berkeley.edu To: java-user@lucene.apache.org Subject: Re: Sorting and Ranking In-Reply-To: <20051028223412.61564.qmail@web60022.mail.yahoo.com> Message-ID: References: <20051028223412.61564.qmail@web60022.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N : How does sorting and ranking working together in : Lucene? Are they mutually exclusive? If the search : result is ranked first, then sorting may not have much : value. If sorting is done first, then ranking doesnt : have any meaning? Scoring (which is what i think you mean by ranking) is orthogonal to sorting. When you do a search, and get back a list of matches, you can get the score of any matching doc regardless of wether or not you Sort by a specific field -- or if you sort by a special SortComparator (which can use any arbitrary logic it wants to detemine an ordering of the results). -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org