Pedro Rosanes created LUCENE-6869:
-------------------------------------

             Summary: When executing MoreLikeThis with multiple fields, it 
should create a query considering all fieldNames
                 Key: LUCENE-6869
                 URL: https://issues.apache.org/jira/browse/LUCENE-6869
             Project: Lucene - Core
          Issue Type: Improvement
          Components: core/query/scoring
    Affects Versions: 5.3
            Reporter: Pedro Rosanes


When executing MLT with multiple fields, it should
considerem them all

If a document has the same term in multiple fields, the
mlt generates a query considering only the field with
the higher idf. This commit changes the behaviour, to
include in the query all fieldnames.

Eg.:
Last behaviour:
Doc ("fieldName1", "value")
    ("fieldName2", "value")

    Old behaviour generates query: "fieldName1:value"
    New Behaviour generates query: "fieldName1:value
    fieldName2:value"

Proposed solution:
https://github.com/prosanes/lucene-solr/pull/1/files



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

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

Reply via email to