[ https://issues.apache.org/jira/browse/LUCENE-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doron Cohen updated LUCENE-1019: -------------------------------- Attachment: lucene-1019-multi-vsq.patch lucene-1019-multi-vsq.patch: * modified version2: ** fixed hash() and equals() ** added a multi vsq form of customExplain() ** more documentation in customScore() and customExplain() ** added test of multi vsq * fixed a bug in search.function tests All tests pass. I intend to commit this in a few days. > CustomScoreQuery should support multiple ValueSourceQueries > ----------------------------------------------------------- > > Key: LUCENE-1019 > URL: https://issues.apache.org/jira/browse/LUCENE-1019 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Affects Versions: 2.2 > Reporter: Kyle Maxwell > Assignee: Doron Cohen > Attachments: CustomMultiQuery.v0.diff, CustomScoreQuery.v1.diff, > lucene-1019-multi-vsq.patch > > > CustomScoreQuery's constructor currently accepts a subQuery, and a > ValueSourceQuery. I would like it to accept multiple ValueSourceQueries. > The workaround of nested CustomScoreQueries works for simple cases, but it > quickly becomes either cumbersome to manage, or impossible to implement the > desired function. > This patch implements CustomMultiScoreQuery with my desired functionality, > and refactors CustomScoreQuery to implement the special case of a > CustomMultiScoreQuery with 0 or 1 ValueSourceQueries. This keeps the > CustomScoreQuery API intact. > This patch includes basic tests, more or less taken from the original > implementation, and customized a bit to cover the new cases. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]