You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ruslan Dautkhanov <da...@gmail.com> on 2019/06/23 22:39:45 UTC

giving weight for SynonymFilterFactory terms

Hello!

Is there is a way for Solr to assign weights for terms produced
by SynonymFilterFactory?

We'd like to give smaller weight for synonyms words/terms injected by
SynonymFilterFactory.
So exact matches weigh higher get higher score.

First use case if to just give one static weight for all synonyms
and if search-time matches through synonyms it'll have a certain (lower)
weight than exact match.

Can't find this in documentation.

Another use case is to fine-tune each synonyms with a particular weight
for each particular synonym (i.e. synonyms="synonyms.txt" would have 3
columns and not 2). It seems not currently possible, so perhaps just static
weight for all synonyms described above would be possible.

Any pointers highly appreciated.

Thank you,
Ruslan

Re: giving weight for SynonymFilterFactory terms

Posted by Ruslan Dautkhanov <da...@gmail.com>.
Any way in Solr to give weights to synonyms?

Thanks.


On Sun, Jun 23, 2019 at 4:39 PM Ruslan Dautkhanov <da...@gmail.com>
wrote:

> Hello!
>
> Is there is a way for Solr to assign weights for terms produced
> by SynonymFilterFactory?
>
> We'd like to give smaller weight for synonyms words/terms injected by
> SynonymFilterFactory.
> So exact matches weigh higher get higher score.
>
> First use case if to just give one static weight for all synonyms
> and if search-time matches through synonyms it'll have a certain (lower)
> weight than exact match.
>
> Can't find this in documentation.
>
> Another use case is to fine-tune each synonyms with a particular weight
> for each particular synonym (i.e. synonyms="synonyms.txt" would have 3
> columns and not 2). It seems not currently possible, so perhaps just
> static
> weight for all synonyms described above would be possible.
>
> Any pointers highly appreciated.
>
> Thank you,
> Ruslan
>
>