lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (SOLR-5351) More Like This Handler uses only first field in mlt.fl when using stream.body
Date Fri, 25 May 2018 09:41:00 GMT


ASF subversion and git services commented on SOLR-5351:

Commit d2e9ad200802801423061fe6019c8e8c6dc1b62f in lucene-solr's branch refs/heads/branch_7x
from [~dawid.weiss]
[;h=d2e9ad2 ]

SOLR-5351: Fixed More Like This Handler to use all fields provided in mlt.fl when used with
content stream. The similarity is calculated between the content stream's value and all fields
listed in mlt.fl.

> More Like This Handler uses only first field in mlt.fl when using stream.body
> -----------------------------------------------------------------------------
>                 Key: SOLR-5351
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: MoreLikeThis
>    Affects Versions: 4.4
>         Environment: Linux,Windows
>            Reporter: Zygmunt Wiercioch
>            Assignee: Tommaso Teofili
>            Priority: Minor
>         Attachments: SOLR-5351.patch, SOLR-5351.patch
> The documentation at: indicates that
one can use multiple fields for similarity in mlt.fl:
> http://localhost:8983/solr/mlt?stream.body=electronics%20memory&mlt.fl=manu,cat&mlt.interestingTerms=list&mlt.mintf=0
> In trying this, only one field is used. 
> Looking at the code, it only looks at the first field:
>  public DocListAndSet getMoreLikeThis( Reader reader, int start, int rows, List<Query>
filters, List<InterestingTerm> terms, int flags ) throws IOException
>     {
>       // analyzing with the first field: previous (stupid) behavior
>       rawMLTQuery =, mlt.getFieldNames()[0]); 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message