This should be happening automatically by the tf/idf
calculations, which weighs terms that are rare in the
index more heavily than ones that are more common.

That said, at very low numbers this may be invisibly,
I'm not sure the relevance calculations for 3 as opposed
to 1 are very consequential.

However, you _do_ have access to the tf in the Function Queries,
see: https://cwiki.apache.org/confluence/display/solr/Function+Queries

You could manipulate the scores of your docs by getting
creative with these I think for your particular case.

Best,
Erick

On Mon, Sep 22, 2014 at 11:12 AM, O. Olson <olson_...@yahoo.it> wrote:
> I use Solr to index some products that have an ImageUrl field. Obviously some
> of the images are duplicates. I would like to boost the rankings of products
> that have unique images (i.e. more specifically, unique ImageUrl field
> values, because I don't deal with the image binary).
>
> By this I mean, if a certain product has a value in the ImageUrl not used by
> any other product, it would be boosted more than another product which has a
> value in the ImageUrl used by 3 other products.
>
> I hope I have explained that correctly. If not, please ask and I would try
> again.
>
> For e.g. if I want to boost the products with quantity, I can add
>
> &bf=log(qty)
>
> to the request. Is there some similar function I can add to the ImageUrl
> field to boost unique values?
>
> Thank you in advance,
> O. O.
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Boosting-Unique-Values-tp4160507.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to