Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 71004 invoked from network); 14 Oct 2004 15:27:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Oct 2004 15:27:53 -0000 Received: (qmail 44028 invoked by uid 500); 14 Oct 2004 15:27:43 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 43932 invoked by uid 500); 14 Oct 2004 15:27:42 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 43831 invoked by uid 99); 14 Oct 2004 15:27:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Oct 2004 08:27:40 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id BE69C13E2006; Thu, 14 Oct 2004 11:27:37 -0400 (EDT) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by ehatchersolutions.com (Postfix) with ESMTP id 1736B13E2005 for ; Thu, 14 Oct 2004 11:27:35 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: <416CBEC4.1060709@bayt.net> <200410132033.06273.paul.elschot@xs4all.nl> <416D7992.6070909@apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <92895F7A-1DF5-11D9-A6CB-000A95BC61B6@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: sorting and score ordering Date: Thu, 14 Oct 2004 11:27:34 -0400 To: "Lucene Users List" X-Mailer: Apple Mail (2.619) X-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, RCVD_IN_ORBS,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_APPLEMAIL version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Oct 13, 2004, at 5:40 PM, Chris Fraschetti wrote: > and finally if i do.... > > SortField score_sort = ScoreField.FIELD_SCORE; > SortField rank_sort = new SortField(RANK_FIELD, true); > SortField[] sort_fields = {score_sort, rank_sort}; > Sort sort = new Sort(sort_fields); > hits = searcher.search(query, sort); > > I get the same results as I did with the score_sort only... no change > in the ordering of the rank is there... any ideas? It looks to me as > if it's completely ignoring it. This is sorting first by score and then by your rank field. The rank field sort only applies when the scores are the same. I suspect you're getting different scores so you'd never see rank come into play. Display the score and rank in your results to see for sure. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org