lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lamb <>
Subject MoreLikeThis match
Date Thu, 07 Apr 2011 17:30:11 GMT
Hi all,

I've been using MoreLikeThis for a while through select:

http://localhost:8983/solr/select/?q=field:more like

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

which seems to run faster and do a better job overall. When the results are
returned, they are formatted like this:

  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">1</int>
  <result name="match" numFound="24" start="0" maxScore="3.0438285">
      <float name="score">3.0438285</float>
      <str name="id">5</str>
  <result name="response" numFound="4077" start="0" maxScore="0.12775186">
      <float name="score">0.1125823</float>
      <str name="id">3</str>
      <float name="score">0.10231556</float>
      <str name="id">8</str>

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.


Brian Lamb

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