lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: An example for creating SynonymMap Object?
Date Mon, 15 Oct 2018 22:30:56 GMT
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:baris.kazar@oracle.com <baris.kazar@oracle.com>
> Sent: Monday 15th October 2018 23:03
> To: java-user@lucene.apache.org
> 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:baris.kazar@oracle.com <baris.kazar@oracle.com>
> >> Sent: Monday 15th October 2018 20:52
> >> To: java-user@lucene.apache.org
> >> 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: java-user-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: java-user-help@lucene.apache.org
> >>
> >>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message