lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
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, baris.kazar@oracle.com wrote:
> https://lucene.apache.org/core/6_4_1/analyzers-common/org/apache/lucene/analysis/synonym/SynonymGraphFilter.html

>
>
> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message