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 synonym mapping. Phrases are character sequences where words are separated with character zero (U+0000). Empty words (two U+0000s in a row) are not allowed in the input nor the output!//
//Parameters://
//input - input phrase//
//output - output phrase//
//includeOrig - true if the original should be included/


That means if the search string has the input expression, it looks for all output expressions and treats them to be equivalent, right?

Best regards

Reply via email to