I tried the following request after changed the dismax :
http://localhost:8983/solr/listings/select/?q=novel&qt=dismax&qf=title_s^2.0&fl=title_s+isbn_s&version=2.2&start=0&rows=5&indent=on&debugQuery=on

But I don't get any results :

<lst name="debug">
<str name="rawquerystring">novel</str>
<str name="querystring">novel</str>
<str name="parsedquery">+DisjunctionMaxQuery((title_s:novel^2.0)~0.01)
()</str>
<str name="parsedquery_toString">+(title_s:novel^2.0)~0.01 ()</str>
<lst name="explain"/>
<str name="QParser">DismaxQParser</str>
<null name="altquerystring"/>
−
<arr name="boostfuncs">
<str>
        
     </str>
</arr>
−
<lst name="timing">
<double name="time">3.0</double>
−
<lst name="prepare">
<double name="time">1.0</double>
−
<lst name="org.apache.solr.handler.component.QueryComponent">
<double name="time">1.0</double>
</lst>
etc....


Do I need to add some specific attributes to my string fields?
It looks now like this :
<dynamicField name="*_s"  type="string"  indexed="true"  stored="true" 
omitNorms="false"/>
and below :
<copyField source="*_s"  dest="text"/>

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

Reply via email to