Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90241 invoked from network); 19 Apr 2006 04:39:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Apr 2006 04:39:13 -0000 Received: (qmail 19541 invoked by uid 500); 19 Apr 2006 04:39:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19310 invoked by uid 500); 19 Apr 2006 04:39:07 -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 19299 invoked by uid 99); 19 Apr 2006 04:39:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 21:39:07 -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; Tue, 18 Apr 2006 21:39:06 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 599405B776; Tue, 18 Apr 2006 21:38:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 4D9767F403 for ; Tue, 18 Apr 2006 21:38:45 -0700 (PDT) Date: Tue, 18 Apr 2006 21:38:45 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: using custom sort method In-Reply-To: <4445B71D.1000406@ist.psu.edu> Message-ID: References: <20060418154618.8hu1kvk2oko0oos8@webmail.service.emory.edu> <20060418195923.njbskaif40ggkccg@webmail.service.emory.edu> <4445B71D.1000406@ist.psu.edu> 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 : I have asked the exact same question a few weeks ago. I just follow the : customized distance example and loop the results again to get another : field and compute the scores. It will be painful if you need more than 3 : fields. So far I didn't find any other way to do it. Hope we can see It's not clear to me what exactly you've tried so far, and what it doesn't do that you want it to ... can you post some code demonstrating your problem? : some new classes to address the problem. To be able to customize ranking : is very important to a search engine. Customizing ranking/scoring is not exactly the same thing as defining your own sort -- there are lots of ways to customize the scoring of your queries: doc boosts, field boosts, query boosts, customomized Similarity ... you should also take a look at the FunctionQueries available in Solr, they allow you to define custom functions that are factoried into the total score of your query... http://incubator.apache.org/solr/docs/api/org/apache/solr/search/function/package-summary.html --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org