lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenzo D'Amore" <v.dam...@gmail.com>
Subject SynonymFilterFactory deprecated
Date Wed, 25 Oct 2017 09:04:26 GMT
Hi all,

I see in Solr SynonymFilterFactory is deprecated

https://lucene.apache.org/core/7_1_0/analyzers-common/
org/apache/lucene/analysis/synonym/SynonymFilterFactory.html

the documentation suggest:

Use SynonymGraphFilterFactory
> <https://lucene.apache.org/core/7_1_0/analyzers-common/org/apache/lucene/analysis/synonym/SynonymGraphFilterFactory.html>
>  instead, but be sure to also use FlattenGraphFilterFactory
> <https://lucene.apache.org/core/7_1_0/analyzers-common/org/apache/lucene/analysis/core/FlattenGraphFilterFactory.html>
>  at index time (not at search time) as well.


On the other hand documentation also say FlattenGraphFilterFactory is
experimental and might change in incompatible ways in the next release.

Not sure what to do in this case. Not clear what does
FlattenGraphFilterFactory and why should I have it after the
SynonymGraphFilterFactory.

And again, if I have many SynonymGraphFilterFactory at index time, may I
have only one FlattenGraphFilterFactory at end of chain or should I add a
FlattenGraphFilterFactory for each SynonymGraphFilterFactory found in the
chain?

Thanks for your time and best regards,
Vincenzo

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message