lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruby <>
Subject Solr-Edismax boost a property
Date Tue, 24 Oct 2017 14:56:16 GMT
I'm new to edismax query parser. Trying to figure out how to boost a specific
field over a copy fields.

I want to show all documents for which the *object_name* property contains
the search string first and then list all documents which has the value in
FTS_CopyField  and finally show the documents which have the value in

My search happens against two copyfields called FTS_CopyField and
DTS_CopyField. These two fields contain values from all properties/fields.

q=FTS_CopyField:oneapple OR DTS_CopyField:oneapple OR 

so far my search handler looks like:

   <requestHandler name="/myHandler" class="solr.SearchHandler">
    <lst name="defaults">
	<str name="defType">edismax</str>
         <str name="echoParams">explicit</str>
         <int name="rows">10</int>
         <str name="df">FTS_CopyField</str>
		 <str name="qf">FTS_CopyField^200</str>
		 <str name="qf">DTS_CopyField^10</str>
		 <str name="qf">object_name^500</str>	
		 <str name="bq">prop1:(best)^500</str>  
		 <str name="bq">prop2:(candidate)^400</str>  

		 <str name="bq">rating:(5)^500</str>  	
		<str name="bf">recip(ms(NOW,last_mod_date),3.16e-11,1,1)^2</str>
		<str name="bf">recip(ms(NOW,creation_date),3.16e-11,1,1)^1</str>		 
         <str name="q.op">AND</str>
         <str name="facet.method">fc</str>

Is the obove the correct way of boosting object_name filed? 
Also how do I boost full match over partial match? if a document has
oneapple then I want to show it first and then other documents which have
words starting with oneapple.

Thank so much in advance.

Sent from:

View raw message