[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]