Re: SynonymMap

2018-09-10 Thread Michael McCandless
The SynonymMap.Builder constructor takes a dedup parameter to tell it what to do in that case (when input and output are identical across added rules). Mike McCandless http://blog.mikemccandless.com On Thu, Sep 6, 2018 at 2:06 PM, Baris Kazar wrote: > Hi,- > how does SynonymMap deal with

SynonymGraphFilter

2018-09-10 Thread baris . kazar
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

Re: SynonymGraphFilter

2018-09-10 Thread baris . kazar
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

Re: SynonymMap

2018-09-10 Thread baris . kazar
Ok, it does data deduplication if it is set to true. Best On 9/10/18 1:11 PM, Michael McCandless wrote: The SynonymMap.Builder constructor takes a dedup parameter to tell it what to do in that case (when input and output are identical across added rules). Mike McCandless

SynonymMap.Builder.add method

2018-09-10 Thread baris . kazar
i am trying to understand the add method here https://lucene.apache.org/core/6_4_1/analyzers-common/org/apache/lucene/analysis/synonym/SynonymMap.Builder.html /public void add(CharsRef input,// //CharsRef output,// //boolean includeOrig)// //Add a phrase->phrase