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: 3.0, 2.9.1
Reporter: Uwe Schindler
Assignee: Uwe Schindler
As FuzzyQuery does not allow to change the rewrite mode, highlighter fails with
UOE, because it changes the rewrite mode to Boolean query. There are two
possibilities to fix it:
- Allow MTQ to change rewrite method and for this to work port the patch from
LUCENE-2110 (flex branch) to trunk/2.9/3.0, that provides a FUZZY_REWRITE
method, that would be the default fro Fuzzy but can be changed to any other
method.
- if instanceof FuzzyQuery do not try to change rewritemode, as FuzzyQuery
rewrites to BooleanQuery/TermQuery always.
--
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]