lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Prioritizing advectives in solr search
Date Mon, 11 Oct 2010 19:00:00 GMT

: here is my scenario, im using dismax handler and my understanding is when I
: query "Blue hammer", solr brings me results for "blue hammer", "blue" and
: "hammer", and in the same hierarchy, which is understandable, is there any
: way I can manage the "blue" keyword, so that solr searches for "blue hammer"
: and "hammer" and not any results for "blue".

at a very simple level, you can achieve something like this by using a 
"qf" that points at fields where adjectives have been removed (ie: using 
StopFilter) and using "pf" fields where the adjectives have been left 
alone -- thus a query for "blue hammer" will match any doc containing 
"hammer" but the "pf" clause will boost documents matching the phrase 
"blue hammer" (documents matching only "blue" will not match, and 
documents matching "blue" and "hammer" farther apart then the "ps" param 
will not get the phrase boost)

But pleast note Walter's comments and consider them carefully before 
treating this as a silver bullet.

: my handler is as follows...
:  <requestHandler name="standard2" class="solr.SearchHandler">
:     <!-- default values for query parameters -->
:      <lst name="defaults">
: 	 <str name="defType">dismax</str>
:        <str name="echoParams">explicit</str>
: 		<str name="tie">0.6</str>
: 		<str name="pf">name^2.3 mat_nr^0.4</str>
: 	<str name="mm">0%</str> 
: any suggestion on this??
: -- 
: View this message in context:
: Sent from the Solr - User mailing list archive at


View raw message