[
https://issues.apache.org/jira/browse/LUCENE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646721#action_12646721
]
Mark Miller commented on LUCENE-1424:
-------------------------------------
For kicks, I tried implementing the MultiTermGenerator so that it returns an
inner class DocSetId iterator that iterates over matching terms/docs, thinking
we could save some speed by avoiding the OpenBitSet creation, population, read.
Instead, even in tests that didn't involve any skip-to (not sure what/if any of
these cases actually do, still wrapping my head around that), the non generate
the bitset first approach was a tad slower rather than faster. Don't know
exactly why I the moment, but thought I'd chronicle the attempt for future
optimizers. Probably all the stuff that happens between next calls slows down
the enumeration quite a bit, so that doing it all at once saves enough time to
make up for the OpenBitSet stuff.
> Change all multi-term querys so that they extend MultiTermQuery and allow for
> a constant score mode
> ---------------------------------------------------------------------------------------------------
>
> Key: LUCENE-1424
> URL: https://issues.apache.org/jira/browse/LUCENE-1424
> Project: Lucene - Java
> Issue Type: New Feature
> Reporter: Mark Miller
> Assignee: Michael Busch
> Priority: Minor
> Fix For: 2.9
>
> Attachments: LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch,
> LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch,
> LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch,
> LUCENE-1424.patch, LUCENE-1424.patch
>
>
> Cleans up a bunch of code duplication, closer to how things should be -
> design wise, gives us constant score for all the multi term queries, and
> allows us at least the option of highlighting the constant score queries
> without much further work.
--
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]