FAQ
[ https://issues.apache.org/jira/browse/LUCENE-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789303#action_12789303 ]

Uwe Schindler commented on LUCENE-2123:
---------------------------------------

To test the comparator and inject a bug:
remove:
{code}
// ignore uncompetetive hits
if (stQueue.size() >= maxSize && boost <= stQueue.peek().boost)
return true;
{code}

and inverse the comparator's term order:
{code}
public int compareTo(ScoreTerm other) {
if (this.boost == other.boost)
return *-*other.term.compareTo(this.term);
else
return Float.compare(this.boost, other.boost);
}
{code}
Move FuzzyQuery rewrite as separate RewriteMode into MTQ, was: Highlighter fails to highlight FuzzyQuery
--------------------------------------------------------------------------------------------------------

Key: LUCENE-2123
URL: https://issues.apache.org/jira/browse/LUCENE-2123
Project: Lucene - Java
Issue Type: Bug
Components: contrib/highlighter
Affects Versions: Flex Branch
Reporter: Uwe Schindler
Assignee: Uwe Schindler
Fix For: Flex Branch, 3.0.1, 3.1

Attachments: LUCENE-2123-flex.patch, LUCENE-2123-flex.patch, LUCENE-2123-flex.patch, LUCENE-2123-flex.patch, LUCENE-2123-flex.patch, LUCENE-2123-flex.patch, LUCENE-2123-flex.patch, LUCENE-2123-lucene30.patch, LUCENE-2123-lucene30.patch, LUCENE-2123-lucene30.patch, LUCENE-2123-lucene30.patch, LUCENE-2123-ScoreTermRemoval-trunk.patch, LUCENE-2123-ScoreTermRemoval-trunk.patch, LUCENE-2123.patch, LUCENE-2123.patch, LUCENE-2123.patch, LUCENE-2123.patch


As FuzzyQuery does not allow to change the rewrite mode, highlighter fails with UOE in flex since LUCENE-2110, because it changes the rewrite mode to Boolean query. The fix is: Allow MTQ to change rewrite method and make FUZZY_REWRITE public for that.
The rewrite mode will live in MTQ as TOP_TERMS_SCORING_BOOLEAN_REWRITE. Also the code will be refactored to make heavy reuse of term enumeration code and only plug in the PQ for filtering the top terms.
--
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 26 of 26 | next ›
Discussion Overview
groupdev @
categorieslucene
postedDec 6, '09 at 11:31p
activeDec 11, '09 at 1:25p
posts26
users1
websitelucene.apache.org

1 user in discussion

Uwe Schindler (JIRA): 26 posts

People

Translate

site design / logo © 2021 Grokbase