Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2EB28646E for ; Sun, 22 May 2011 10:34:30 +0000 (UTC) Received: (qmail 24380 invoked by uid 500); 22 May 2011 10:34:28 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 24323 invoked by uid 500); 22 May 2011 10:34:28 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 24315 invoked by uid 99); 22 May 2011 10:34:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2011 10:34:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2011 10:34:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8678FD7482 for ; Sun, 22 May 2011 10:33:47 +0000 (UTC) Date: Sun, 22 May 2011 10:33:47 +0000 (UTC) From: "Chris Male (JIRA)" To: dev@lucene.apache.org Message-ID: <1889208059.34302.1306060427547.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <660227919.29446.1305859427411.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2533) Improve API of ValueSource & FunctionQuery SortField weighting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Male updated SOLR-2533: ----------------------------- Attachment: SOLR-2533.patch Updated patch with the change to rewrite. > Improve API of ValueSource & FunctionQuery SortField weighting > -------------------------------------------------------------- > > Key: SOLR-2533 > URL: https://issues.apache.org/jira/browse/SOLR-2533 > Project: Solr > Issue Type: Improvement > Components: search > Reporter: Chris Male > Attachments: SOLR-2533.patch, SOLR-2533.patch > > > Started from LUCENE-2883: Support for sorting by ValueSource and FunctionQueries is done through ValueSource#getSort and the ValueSourceSortField. In order to support VSs containing other Queries, its necessary to allow the Querys to be weighted by an IndexSearcher. Currently this is handled by having ValueSourceSortField implement SolrSortField. In Solr's SolrIndexSearcher, SortFields implementing SolrSortField are then weighted before the Sort is used. > Sorting by FunctionQuery and ValueSource are invaluable and will become available to all Lucene users in LUCENE-2883. But in order to do so, we need to remove the coupling of this functionality to Solr, and make it more standard. > Any and all thoughts about how to do this are appreciated. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org