Hi,

Correct me if i am unable to understand your need properly.
*text^0.5 title^10.0 ProductLine^5*

doc1 {
ProductLine = abc,
Author= rahul
text= abcdef
title = jai Ho
}
doc2 {
ProductLine =  xyz                                          *Extra boost 10*
Author = Tom,
text = abcdef,
title= Solr Lucene
}

So all you want to gave the extra 10 boost to productline if author is tom.

In this case you can use this map function along with query, it is checking
for Tom in Author field, if not found then boost will be 1 which is default
otherwise 15.

*boost=map(query({!dismax qf=Author v="Tom"= pf=""}),0,0,1,15)*

I hope this might help.

With Regards
Aman Tandon

On Tue, Sep 30, 2014 at 2:40 AM, shamik <sham...@gmail.com> wrote:

> Thanks Markus, let me play around with the functions and see if I can
> achieve
> the results.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-query-field-qf-conditional-boost-tp4161783p4161803.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to