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 BA80E438E for ; Thu, 30 Jun 2011 00:21:53 +0000 (UTC) Received: (qmail 10302 invoked by uid 500); 30 Jun 2011 00:21:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 10185 invoked by uid 500); 30 Jun 2011 00:21:52 -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 10178 invoked by uid 99); 30 Jun 2011 00:21:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 00:21:51 +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; Thu, 30 Jun 2011 00:21:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8DB0E43A6A5 for ; Thu, 30 Jun 2011 00:21:28 +0000 (UTC) Date: Thu, 30 Jun 2011 00:21:28 +0000 (UTC) From: "Chris Male (JIRA)" To: dev@lucene.apache.org Message-ID: <1414959466.4189.1309393288577.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <37531704.590.1309304788414.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3256) Consolidate CustomScoreQuery, ValueSourceQuery and BoostedQuery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057565#comment-13057565 ] Chris Male commented on LUCENE-3256: ------------------------------------ Command for patch is: {code} svn move lucene/src/java/org/apache/lucene/search/function/CustomScoreQuery.java modules/queries/src/java/org/apache/lucene/queries/ svn move lucene/src/java/org/apache/lucene/search/function/CustomScoreProvider.java modules/queries/src/java/org/apache/lucene/queries/ svn move solr/src/java/org/apache/solr/search/function/BoostedQuery.java modules/queries/src/java/org/apache/lucene/queries/function/ svn --parents mkdir modules/queries/src/test/org/apache/lucene/queries/function svn move lucene/src/test/org/apache/lucene/search/function/TestCustomScoreQuery.java modules/queries/src/test/org/apache/lucene/queries/ {code} > Consolidate CustomScoreQuery, ValueSourceQuery and BoostedQuery > ---------------------------------------------------------------- > > Key: LUCENE-3256 > URL: https://issues.apache.org/jira/browse/LUCENE-3256 > Project: Lucene - Java > Issue Type: Sub-task > Components: core/search > Reporter: Chris Male > Fix For: 4.0 > > Attachments: LUCENE-3256.patch, LUCENE-3256.patch, LUCENE-3256.patch > > > Lucene's CustomScoreQuery and Solr's BoostedQuery do essentially the same thing: they boost the scores of Documents by the value from a ValueSource. BoostedQuery does this in a direct fashion, by accepting a ValueSource. CustomScoreQuery on the other hand, accepts a series of ValueSourceQuerys. ValueSourceQuery seems to do exactly the same thing as FunctionQuery. > With Lucene's ValueSource being deprecated / removed, we need to resolve these dependencies and simplify the code. > Therefore I recommend we do the following things: > - Move CustomScoreQuery (and CustomScoreProvider) to the new Queries module and change it over to use FunctionQuerys instead of ValueSourceQuerys. > - Deprecate Solr's BoostedQuery in favour of the new CustomScoreQuery. CSQ provides a lot of support for customizing the scoring process. > - Move and consolidate all tests of CSQ and BoostedQuery, to the Queries module and have them test CSQ instead. -- 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