Hi Tim,

Unfortunately that's not what I am looking for.  I understand how to use
the relevancy of a field as described in that example, but it doesn't do
what I asked, which is conditional field weighting.

The difference is that specifying a query with something like

&qf=name^10 description^5 location^3

would apply all those weights to each field if the term was found in all
three fields.

what I want to happen is:

1) if term is found in name field, then use weights exactly as shown.

2) if term is not found in name, but is found in description and location,
then the weights should be adjusted to the equivalent of:
&qf=description^10 location^5

3) if term is not found in name or description but is found in location,
then the weights should be adjusted to be the equivalent of:
&qf=location^10


the goal of what I'm trying to do is to have an priority/importance order
to the fields and apply a higher weight on the first field it matches
(going in order of importance), then applying less weight to each remaining
field each time it matches.

so far my research seems to indicate that this is not possible with any
current solr feature ...

thanks anyway,

jack



On Wed, Jan 18, 2012 at 6:16 PM, csscouter <tim.hi...@verizon.net> wrote:

> Jack,
>
> Did you see this response to a similar question? I think this is how to
> refer to it:
>
> http://lucene.472066.n3.nabble.com/How-to-boost-the-relevancy-of-a-field-tp3671020p3671020.html
> How to boost the relevancy of a field
>
>
> I have / had a similar question to yours, and the response to this question
> seemed relevant.
>
> Tim
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/conditional-field-weighting-tp3670544p3671201.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to