lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenzo D'Amore" <v.dam...@gmail.com>
Subject Re: Sample code?
Date Thu, 03 May 2018 09:55:27 GMT
Hi Mike,

I wrote something, it is just a very basic example though

https://github.com/freedev/lucene-example

Have a look may be it is useful

On Wed, May 2, 2018 at 9:48 PM, Mike Lynott <michaellynott@boisestate.edu>
wrote:

> The sample code for SynonymGraphFilterFactory is written (I assume) in
> Solr. Could someone provide a Java translation? Thanks.
>
> This is what I see:
>
> <fieldType name="text_synonym" class="solr.TextField"
> positionIncrementGap="100">
>    <analyzer>
>      <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>      <filter class="solr.SynonymGraphFilterFactory"
> synonyms="synonyms.txt"
>              format="solr" ignoreCase="false" expand="true"
>              tokenizerFactory="solr.WhitespaceTokenizerFactory"
>              [optional tokenizer factory parameters]/>
>    </analyzer>
>  </fieldType>
>
> Mike L
>



-- 
Vincenzo D'Amore

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