Actually, what is the difference between "match" and "response"? It seems
that match always returns one result but I've thrown a few cases at it where
the score of the highest response is higher than the score of match. And
then there are cases where the match score dwarfs the highest response
score.

On Thu, Apr 7, 2011 at 1:30 PM, Brian Lamb <brian.l...@journalexperts.com>wrote:

> Hi all,
>
> I've been using MoreLikeThis for a while through select:
>
> http://localhost:8983/solr/select/?q=field:more like
> this&mlt=true&mlt.fl=field&rows=100&fl=*,score
>
> I was looking over the wiki page today and saw that you can also do this:
>
> http://localhost:8983/solr/mlt/?q=field:more like
> this&mlt=true&mlt.fl=field&rows=100
>
> which seems to run faster and do a better job overall. When the results are
> returned, they are formatted like this:
>
> <response>
>   <lst name="responseHeader">
>     <int name="status">0</int>
>     <int name="QTime">1</int>
>   </lst>
>   <result name="match" numFound="24" start="0" maxScore="3.0438285">
>     <doc>
>       <float name="score">3.0438285</float>
>       <str name="id">5</str>
>     </doc>
>   </result>
>   <result name="response" numFound="4077" start="0" maxScore="0.12775186">
>     <doc>
>       <float name="score">0.1125823</float>
>       <str name="id">3</str>
>     </doc>
>     <doc>
>       <float name="score">0.10231556</float>
>       <str name="id">8</str>
>     </doc>
>  ...
>   </result>
> </response>
>
> It seems that it always returns just 1 response under match and response is
> set by the rows parameter. How can I get more than one result under match?
>
> What I'm trying to do here is whatever is set for field:, I would like to
> return the top 100 records that match that search based on more like this.
>
> Thanks,
>
> Brian Lamb
>

Reply via email to