Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 65382 invoked from network); 2 Mar 2006 18:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Mar 2006 18:56:20 -0000 Received: (qmail 11414 invoked by uid 500); 2 Mar 2006 18:57:02 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 11362 invoked by uid 500); 2 Mar 2006 18:57:02 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 11348 invoked by uid 99); 2 Mar 2006 18:57:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 10:57:00 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8EFB4DC for ; Thu, 2 Mar 2006 19:56:39 +0100 (CET) Message-ID: <115908529.1141325799560.JavaMail.jira@ajax.apache.org> Date: Thu, 2 Mar 2006 19:56:39 +0100 (CET) From: "Yonik Seeley (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-446) FunctionQuery - score based on field value In-Reply-To: <1335068423.1128457428687.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-446?page=comments#action_12368570 ] Yonik Seeley commented on LUCENE-446: ------------------------------------- This version is now slightly out of date. For now, consider the definitive version to be in Solr: http://incubator.apache.org/solr http://svn.apache.org/viewcvs.cgi/incubator/solr/trunk/src/java/org/apache/solr/search/function/ Solr currently has a QueryParser hack to parse a FunctionQuery... you use _val_ as the fieldName to create a FunctionQuery Examples: _val_:myfield _val_:"max(myfield,2.0)" _val_:"max(linear(myfield,1.0,.1), 5.0)" > FunctionQuery - score based on field value > ------------------------------------------ > > Key: LUCENE-446 > URL: http://issues.apache.org/jira/browse/LUCENE-446 > Project: Lucene - Java > Type: New Feature > Components: Search > Versions: 1.9 > Reporter: Yonik Seeley > Attachments: function.zip, function.zip > > FunctionQuery can return a score based on a field's value or on it's ordinal value. > FunctionFactory subclasses define the details of the function. There is currently a LinearFloatFunction (a line specified by slope and intercept). > Field values are typically obtained from FieldValueSourceFactory. Implementations include FloatFieldSource, IntFieldSource, and OrdFieldSource. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org