Try the MLT query parser, which is a much newer way of doing this.
Perhaps it will work better for you.

Upayavira

On Sun, Jan 31, 2016, at 06:31 PM, Robert Brown wrote:
> Hi,
> 
> I've had to switch to using the MLT component, rather than the handler, 
> since I'm running on Solrcloud (5.4) and if I hit a node without the 
> starting document, I get nothing back.
> 
> When I perform a MLT query, I only get back the ID and score for the 
> similar documents, yet my fl=*,score.
> 
> "moreLikeThis" : [
>        "tg-uk-6336277-5820875618687434337",
>        {
>           "maxScore" : 16.857872,
>           "numFound" : 49559,
>           "docs" : [
>              {
>                 "score" : 16.857872,
>                 "id" : "tg-uk-6336277-6676971947462687384"
>              },
>              {
>                 "score" : 16.857872,
>                 "id" : "tg-uk-6336277-1922478172471276129"
>              },
> 
> 
> 
> Here's my config...
> 
>      <requestHandler name="/select" class="solr.SearchHandler">
> 
>          <lst name="defaults">
> 
>              <str name="defType">edismax</str>
> 
>              <str name="echoParams">explicit</str>
> 
>              <float name="tie">0.1</float>
> 
>              <str name="fl">*,score</str>
> 
>              <str name="qf">
>                  name^5
>                  brand^2
>                  category^3
>              </str>
> 
>              <str name="df">name</str>
> 
>              <str name="mm">100%</str>
> 
>              <int name="ps">100</int>
> 
>              <str name="q.alt">*:*</str>
> 
>              <str name="mlt.qf">
>                  name^5 description^2 brand^3 category^3
>              </str>
> 
>              <str 
> name="mlt.fl">name,description,ean,upc,asin,brand,category</str>
> 
>          </lst>
> 
>          <arr name="components">
>              <str>query</str>
>              <str>facet</str>
>              <str>mlt</str>
>          </arr>
> 
>      </requestHandler>
> 
> 
> 
> 

Reply via email to