Query time relevancy changes using boost functions.

The current recommendation for doing this is to use the 'bq' parameter with function queries.

Use of function queries is described here: https://cwiki.apache.org/confluence/display/solr/Function+Queries

But note that the examples there suggest using 'bf', but we recommend using 'bq' instead.  This is mainly due to the fact that the query parser won't handle whitespace coming through 'bf' correctly.  Specifically, using this will generate an error:

bf={!func}if(query({!v='manu_exact:"cherry red"'}),100,0)

But this will work as expected:

bq={!func}if(query({!v='manu_exact:"cherry red"'}),100,0)

More on the "deprecation" (sort of) of bf at:



Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk