Hello Baris,

The expand parameter defaults to true, so you should not have to add both 
rules. If you are using Solr, you can easily check it in the analysis tab. If 
not, printing the resulting Query object works as well.

Regards,
Markus

 
 
-----Original message-----
> From:[email protected] <[email protected]>
> Sent: Monday 15th October 2018 23:03
> To: [email protected]
> Subject: Re: An example for creating SynonymMap Object?
> 
> Thanks Markus.
> 
> i am trying to see whether i need to add abc-> 123 and also 123-> abc 
> via builder.add.
> 
> Best regards
> 
> 
> 
> On 10/15/18 3:28 PM, Markus Jelsma wrote:
> > Hello Baris,
> >
> > Check out the filter factory and the map parser for a more low level 
> > example:
> >
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_lucene-2Dsolr_blob_master_lucene_analysis_common_src_java_org_apache_lucene_analysis_synonym_SynonymGraphFilterFactory.java&d=DwIFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BKNeyLlULCbaezrgocEvPhQkl4&m=WfZ3QMUdvaRJKSSAOkVSI2ud96gdsfnb6_5W_s66ADc&s=gjKepGZ0VZN-2J6s7QgQZs7xeg5qbDwZ8a5soocXnhs&e=
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_lucene-2Dsolr_blob_master_lucene_analysis_common_src_java_org_apache_lucene_analysis_synonym_SynonymMap.java&d=DwIFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BKNeyLlULCbaezrgocEvPhQkl4&m=WfZ3QMUdvaRJKSSAOkVSI2ud96gdsfnb6_5W_s66ADc&s=ZFSdd4OtF4v3cg7Y5dQV81y82Xt9XvLv-FDYwDbviKo&e=
> >
> >   
> >   
> > -----Original message-----
> >> From:[email protected] <[email protected]>
> >> Sent: Monday 15th October 2018 20:52
> >> To: [email protected]
> >> Subject: An example for creating SynonymMap Object?
> >>
> >> Hi,-
> >>
> >>    is there any example on Lucene domain for creating SynonymMap Object?
> >>
> >> Best regards
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to