[
https://issues.apache.org/jira/browse/SOLR-5042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782864#comment-13782864
]
Anshum Gupta commented on SOLR-5042:
------------------------------------
The issue here seems to be due to the apparent misuse of count in the
MoreLikeThis component.
{code:title=MoreLikeThisComponent.java |borderStyle=solid}
int mltcount = params.getInt(MoreLikeThisParams.DOC_COUNT, 5);
{code}
{code:title=MoreLikeThisComponent.java L113|borderStyle=solid}
NamedList<DocList> sim = getMoreLikeThese(rb, rb.req.getSearcher(),
rb.getResults().docList,
mltcount);
{code}
The signature for getMoreLikeThese however is:
{code:title=MoreLikeThisComponent.java L339|borderStyle=solid}
NamedList<DocList> getMoreLikeThese(ResponseBuilder rb,
SolrIndexSearcher searcher, DocList docs, int flags) throws IOException {
{code}
I'll try and put up a patch.
> MoreLikeThis doesn't return a score when mlt.count is set to 10
> ---------------------------------------------------------------
>
> Key: SOLR-5042
> URL: https://issues.apache.org/jira/browse/SOLR-5042
> Project: Solr
> Issue Type: Bug
> Components: MoreLikeThis
> Affects Versions: 4.3
> Reporter: Josh Curran
> Priority: Minor
>
> The problem appears to be around the mlt.count with in the solrconfig.xml.
> When this value is set to 10, the 10 values that have been identified as
> 'most like this' are returned with the original query, however the 'score'
> field is missing.
> Changing the mlt.count to say 11 and issuing the same query then the 'score'
> field is returned with the same query. This appears to be the workaround. 11
> was just an arbitrary value, 12 or 15 also work
> The same problem was raised on stackoverflow
> http://stackoverflow.com/questions/16513719/solr-more-like-this-dont-return-score-while-specify-mlt-count
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]