Vincent,
You need to add defType=dismax when using bf parameter.
Please see:
http://wiki.apache.org/solr/DisMaxRequestHandler
Koji
Vincent Pérès wrote:
Hello,
I'm stuck my the boost feature...
I'm doing the following query :
http://localhost:8983/solr/select/?q=novel&bf=title_s^5.0&fl=title_s+isbn_s&version=2.2&start=0&rows=5&indent=on&debugQuery=on
Below a part of my debug (the results are correct) :
<lst name="debug">
<str name="rawquerystring">novel</str>
<str name="querystring">novel</str>
<str name="parsedquery">text:novel</str>
<str name="parsedquery_toString">text:novel</str>
−
<lst name="explain">
−
<str name="Listing:397">
0.6041825 = (MATCH) fieldWeight(text:novel in 395), product of:
1.7320508 = tf(termFreq(text:novel)=3)
3.1892564 = idf(docFreq=55, numDocs=500)
0.109375 = fieldNorm(field=text, doc=395)
</str>
−
<str name="Listing:445">
0.51787066 = (MATCH) fieldWeight(text:novel in 443), product of:
1.7320508 = tf(termFreq(text:novel)=3)
3.1892564 = idf(docFreq=55, numDocs=500)
0.09375 = fieldNorm(field=text, doc=443)
</str>
It seems Solr is only evaluating the 'text' field and skip the 'title_s'
field.
The line in the schema for dynamic string is :
<dynamicField name="*_s" type="string" indexed="true" stored="true"
omitNorms="false" />
Do I need to enable something else to be able to change the weight of my
fields?
Thanks very much
Vincent