You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/07/24 13:21:04 UTC

[jira] [Commented] (LUCENE-6695) BlendedTermQuery

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

Uwe Schindler commented on LUCENE-6695:
---------------------------------------

Would it be not better to use IndexSearcher.rewrite() inside ComplexPhraseQueryParser? This one does the rewrite loop correctly, so we don't duplicate code: {{Query rewritten= new IndexSearcher(reader).rewrite(query);}}

But I like your funny for-loop :-)

Otherwise I am fine to have it in core (we have the logic already there, so your proposal to replace the fuzzy rewrite is fine).

> BlendedTermQuery
> ----------------
>
>                 Key: LUCENE-6695
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6695
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6695.patch
>
>
> It is sometimes desirable to ignore differences between index statistics of several terms so that they produce the same scores, for instance if you resolve synonyms at search time or if you want to search across several fields. Elasticsearch has been using this approach for its multi_match query for some time now.
> We already blend statistics in TopTermsBlendedFreqScoringRewrite (used by FuzzyQuery) but it could be helpful to have a dedicated query to choose manually which terms to blend stats from.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org