[ 
https://issues.apache.org/jira/browse/SOLR-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yonik Seeley updated SOLR-349:
------------------------------

    Attachment: FunctionQuery.patch

Attaching functionquery.patch... adding many new functions:

log, sqrt, abs, sum, product, const
scale(source, min, max)    // scale values from source to fall between min and 
max
map(source,min,max,target)   // change any values that fall between min&max to 
target
query(lucene_query, defaultVal)   // use relevancy score, w/ defaultVal when 
doc doesn't match

I also changed the function parser to use a hash lookup on function name since 
the list was getting long.  The parser will now also accept a float constant as 
a value source, allowing things like add(a,2)

This is just a snapshot for feedback... no tests yet.

> boost query by a function of other fields
> -----------------------------------------
>
>                 Key: SOLR-349
>                 URL: https://issues.apache.org/jira/browse/SOLR-349
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>         Attachments: FunctionQuery.patch, linear_combination.patch
>
>
> User should be able to boost a query by a function of other fields
> Some background: 
> http://www.nabble.com/boosting-a-query-by-a-function-of-other-fields-tf4387856.html#a12510092

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to