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

Ryan Lauck commented on LUCENE-4743:
------------------------------------

Given your above example queries yes, the IndexReader is used during rewrite to 
enumerate all the possible terms in a wildcard query. If your query only 
consisted of basic TermQuery and PhraseQuery I think you could provide a 
static, empty IndexReader like PostingsHighlighter does. The docs recommend 
reusing a single IndexSearcher to avoid some of the overhead of opening new 
IndexReaders every time.
                
> ComplexPhraseQuery highlight problem after rewriting using 
> ComplexPhraseQuery.rewrite(IndexReader)
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4743
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4743
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search, modules/queryparser
>    Affects Versions: 3.6
>            Reporter: Jason Nacional
>              Labels: complexqueryparser, newbie, queryparser
>
> Just want to ask an assistance using ComplexPhraseQuery. I mean, when it 
> comes to highlighting the hits are not correct. I also started using 
> ComplexPhraseQueryParser to support complex proximity searches.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to