Hello Solr Users,

I am wondering if there's any mechanism to achieve conditional field
weighting.

For example, let's say I have 3 fields which are being searched: NAME,
DESCRIPTION, LOCATION

I want the weights to be applied according to these rules:

1) If search term is found in NAME, use weight 10 for that field, and apply
weight 5 to the remaining fields.
2) If search term is not found in NAME but it is found in DESCRIPTION,
apply weight 10 to that field and weight 5 to the remaining field.

So basically a reduction-based weighting schedule to be applied fields as
terms are found in them.

Any suggestions on how this might be achieved in Solr?  Or is it a custom
hack job?

Thanks,
Jack.

Reply via email to