lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: SynonymMap.Builder.add method
Date Tue, 11 Sep 2018 17:38:00 GMT
That's correct.

When the input sequence is seen during tokenization, the synonym (graph)
filter will also insert the output tokens into the TokenStream, as if they
"naturally" occurred.

Mike McCandless

http://blog.mikemccandless.com

On Tue, Sep 11, 2018 at 1:35 PM, <baris.kazar@oracle.com> wrote:

> Any comments please?
>
> Thanks
>
>
> On 9/10/18 5:21 PM, baris.kazar@oracle.com wrote:
>
>> i am trying to understand the add method here
>>
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene.
>> apache.org_core_6-5F4-5F1_analyzers-2Dcommon_org_apache_luce
>> ne_analysis_synonym_SynonymMap.Builder.html&d=DwICaQ&c=RoP1Y
>> umCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BK
>> NeyLlULCbaezrgocEvPhQkl4&m=gx_fm_PM8HtJte5j2BP3ZjtjQaw3Es0Vj
>> aNaxfHBFIk&s=PU0Pe1g1osmT_cIQepEV5jp4fQ1XTaOuc_EGPIbWPbo&e=
>>
>>
>> /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
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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