giving weight for SynonymFilterFactory terms

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

giving weight for SynonymFilterFactory terms

Ruslan Dautkhanov
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
Reply | Threaded
Open this post in threaded view
|

Re: giving weight for SynonymFilterFactory terms

Ruslan Dautkhanov
Any way in Solr to give weights to synonyms?

Thanks.


On Sun, Jun 23, 2019 at 4:39 PM Ruslan Dautkhanov <[hidden email]>
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
>
>