lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
Subject SynonymMap.Builder.add method
Date Mon, 10 Sep 2018 21:21:34 GMT
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


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