Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 76498 invoked from network); 10 Jul 2009 21:17:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jul 2009 21:17:53 -0000 Received: (qmail 98028 invoked by uid 500); 10 Jul 2009 21:18:00 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 97919 invoked by uid 500); 10 Jul 2009 21:18:00 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 97909 invoked by uid 99); 10 Jul 2009 21:18:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 21:18:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 21:17:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MPNTF-0001j7-7l for solr-user@lucene.apache.org; Fri, 10 Jul 2009 14:17:29 -0700 Message-ID: <24434489.post@talk.nabble.com> Date: Fri, 10 Jul 2009 14:17:29 -0700 (PDT) From: dontthinktwice To: solr-user@lucene.apache.org Subject: Re: Custom sort In-Reply-To: <4A57A229.6040002@autonomic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: alex@stylefeeder.com References: <23722921.post@talk.nabble.com> <23783579.post@talk.nabble.com> <24432604.post@talk.nabble.com> <4A57A229.6040002@autonomic.net> X-Virus-Checked: Checked by ClamAV on apache.org okobloko wrote: > > It could be that you should be providing an implementation of > "SortComparatorSource" > I have missed the earlier part of this thread, I assume you're trying to > implement some form of custom search? > > B > Yes, exactly. What I'm trying to do is sort the results of an otherwise normal query, based on a scoring method that does some calculations using some data cached from database queries. I have a subclass of FieldType inspired by RandomSortField. Like RandomSortField, it has inner classes that extend SortComparatorSource (as you mention), Comparator, SortField, and ValueSource. The ValueSource stuff is actually what's confusing me right now. I wish I had an example other than RandomSortField. Any advice? Alex -- View this message in context: http://www.nabble.com/Custom-sort-tp23722921p24434489.html Sent from the Solr - User mailing list archive at Nabble.com.