|
Mike Klaas made changes - 21/Apr/09 11:18 PM
[
Permlink
| « Hide
]
Mike Klaas added a comment - 21/Apr/09 11:18 PM
This is probably related to my attempt at refactoring DisjunctionMaxQuery to be a query that performs an arbitrary function on its constituent subqueries.
Doron Cohen made changes - 22/Apr/09 04:01 PM
I thought I had written a class exactly for this purpose but I was wrong - my class was different in that it had an actual value source, just that it was sparse - values for quite many docs were missing. It is similar in a way, but different since here the input is a query.
But I did promise... so I wrote a quick wrapper for a query to create a value source. Although the patch coming soon is tested and all, I am not considering to commit this patch, because it is not clean. I would like to reorganize this package to take better care of this request and other related issues (like LUCENE-850) and to make it worth for Solr to move to use this package. (last time I checked it wasn't). But this is a different issue... Patch for passing arbitrary queries to custom-score-query.
Not intended for committing. See TestQueryWrapperValueSource for usage of this wrapper.
Doron Cohen made changes - 22/Apr/09 09:21 PM
Sorry it took so long for me to try this out, but yes, this does exactly what I need. I'd love to see the package reorganized so that this kind of thing would be easier. I'm far from a Lucene expert, but if there's anything I can do to help, let me know and I'll try to make some time for it.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||