[ https://issues.apache.org/jira/browse/SOLR-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525945 ]
Yonik Seeley commented on SOLR-349: ----------------------------------- Yes, I suppose that sum() makes more sense... and ValueSources are so light weight it shouldn't really cause a performance difference. Although I think perhaps a constant should be allowed in sum(), otherwise people will be trying the very reasonable sum(a,1) and it won't work. Of course we could make a ConstantValueSource, so constants and value-sources would be interchangeable... For "mult", I was thinking "product". Also perhaps a map() to pseudo-handle default values. product(x, map(y,0,1)) // map all zeros to 1 before multiplying > 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: 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.