lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Lauck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4743) ComplexPhraseQuery highlight problem after rewriting using ComplexPhraseQuery.rewrite(IndexReader)
Date Mon, 04 Feb 2013 15:28:14 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message