lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lamb <brian.l...@journalexperts.com>
Subject Re: MoreLikeThis match
Date Mon, 11 Apr 2011 20:55:28 GMT
Does anyone have any thoughts on this one?

On Fri, Apr 8, 2011 at 9:26 AM, Brian Lamb <brian.lamb@journalexperts.com>wrote:

> I've looked at both wiki pages and none really clarify the difference
> between these two. If I copy and paste an existing index value for field and
> do an mlt search, it shows up under match but not results. What is the
> difference between these two?
>
>
> On Thu, Apr 7, 2011 at 2:24 PM, Brian Lamb <brian.lamb@journalexperts.com>wrote:
>
>> 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.lamb@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
>>>
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message