Hi, I'm trying to create a function to boost dynamically boost a field based on specific values for a searchable field. Here's an example:
I've the following query fields with default boost. qf=text^2 title^4 command^8 Also, there's a default boost on the source field. bq=source:help^10 source:forum^5 Among the searchable fields, command gets the highest preference. To add to that,I would like to see boost results from source help further when a query term exists in command field. With my current setting, documents from forum are appearing at the top when a search term is found in command field. Increasing the boost to source:help didn't make any difference. Just wondering if it's possible to write a function which will conditionally boost command field for documents tagged with source=help if(termfreq(source,'help'), command^8, command^1) The above function is just for reference to show what I'm trying to achieve. Any pointers will be helpful. Thanks, Shamik