It seems I can only search on the field 'text'. With the following url :
http://localhost:8983/solr/select/?q=novel&qt=dismax&fl=title_s,id&version=2.2&start=0&rows=10&indent=on&debugQuery=on

I get answers, but on the debug area, it seems it's only searching on the
'text' field (with or without 'qt' the results are displayed within the same
order) :

<lst name="debug">
<str name="rawquerystring">novel</str>
<str name="querystring">novel</str>
−
<str name="parsedquery">
+DisjunctionMaxQuery((text:novel^0.5 | title_s:novel^5.0 |
id:novel^10.0)~0.01) ()
</str>
−
<str name="parsedquery_toString">
+(text:novel^0.5 | title_s:novel^5.0 | id:novel^10.0)~0.01 ()
</str>
−
<lst name="explain">
−
<str name="33395">

0.014641666 = (MATCH) sum of:
  0.014641666 = (MATCH) max plus 0.01 times others of:
    0.014641666 = (MATCH) weight(text:novel^0.5 in 114927), product of:
      0.01362607 = queryWeight(text:novel^0.5), product of:
        0.5 = boost
        3.4734163 = idf(docFreq=10634, numDocs=43213)
        0.007845918 = queryNorm
      1.0745333 = (MATCH) fieldWeight(text:novel in 114927), product of:
        1.4142135 = tf(termFreq(text:novel)=2)
        3.4734163 = idf(docFreq=10634, numDocs=43213)
        0.21875 = fieldNorm(field=text, doc=114927)
</str>
etc.....

I should have a debug below with a search of the term into 'title_s' and
'id' no?

Thanks for your answers !
Vincent
-- 
View this message in context: 
http://www.nabble.com/How-to-change-the-weight-of-the-fields---tp23619971p23649624.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to