我正在使用浏览器中的以下查询尝试 Solr的MoreLikeThis功能:
http://localhost:8983/solr/gettingstarted_shard1_replica1/select?qt=mlt&q=id:31&mlt=true&mlt.fl=firstName,lastName&mlt.mindf=1&mlt.mintf=1&mlt.count=10
哪个有效,但响应如下所示:
<response>
<lst name="responseHeader">
... //removed for brevity
</lst>
<result name="response" numFound="1" start="0" maxScore="1.0">
<doc>
<str name="id">31</str>
<str name="firstName">Alex Luis Armstrong</str>
<str name="lastName">Major Wolf</str>
<long name="_version_">1534338957920174080</long>
</doc>
</result>
<lst name="moreLikeThis">
<result name="31" numFound="4" start="0" maxScore="0.419522">
<doc>
<str name="id">32</str>
<float name="score">0.419522</float>
</doc>
<doc>
<str name="id">33</str>
<float name="score">0.0254616</float>
</doc>
</result>
</lst>
</response>
为什么id 32 和 33 的结果中没有返回 and firstName
?lastName