lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: SynonymGraphFilter
Date Mon, 10 Sep 2018 21:07:50 GMT
Any examples on this? i think it would be nice if Javadocs had an 
example on this:

However, if you use this during indexing, you must follow it with 
FlattenGraphFilter to squash tokens on top of one another like 
SynonymFilter, because the indexer can't directly consume a graph. To 
get fully correct positional queries when your synonym replacements are 
multiple tokens, you should instead apply synonyms using this 
TokenFilter at query time and translate the resulting graph to a 
TermAutomatonQuery e.g. using TokenStreamToTermAutomatonQuery.

multiple tokens means: a synonym with multiple equivalents??

or does it mean a synonym with multiple words?

this is not clear to me.

Best regards

On 9/10/18 3:15 PM, wrote:

> Does this mean i dont have to repeat it in the search analyzer when i 
> do this at indexing time?
> Best regards

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message