Did you change these configurations after indexing your documents? May be it 
needs reindexing if it’s working in analysis page but not with actual queries

—

> On 4 Aug 2023, at 07:45, Ayana Joby <ayana.j...@mindcurv.com> wrote:
> 
> 
> 
> ---------- Forwarded message ---------
> From: Ayana Joby <ayana.j...@mindcurv.com>
> Date: Fri, Aug 4, 2023 at 10:14 AM
> Subject: 
> To: <users-i...@solr.apache.org>
> 
> 
> Hello Team,
> We are using following configuration for Japanese language, but synonym 
> search is not working using this configuration for japanese language
> <fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" 
> autoGeneratePhraseQueries="false">
> <analyzer type="index">
> <tokenizer class="solr.JapaneseTokenizerFactory" mode="search"/>
> <filter class="solr.JapaneseBaseFormFilterFactory"/>
> <filter class="solr.JapanesePartOfSpeechStopFilterFactory" 
> tags="lang/stoptags_ja.txt"/>
> <filter class="solr.CJKWidthFilterFactory"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true" 
> words="lang/stopwords_ja.txt"/>
> <filter class="solr.SynonymGraphFilterFactory" expand="true" 
> ignoreCase="true" synonyms="lang/synonyms_ja.txt"/>
> <filter class="solr.FlattenGraphFilterFactory"/>
> <filter class="solr.JapaneseKatakanaStemFilterFactory" minimumLength="4"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.WordDelimiterGraphFilterFactory" preserveOriginal="1" 
> catenateWords="1"/>
> <filter class="solr.EdgeNGramFilterFactory" maxGramSize="50" minGramSize="1"/>
> </analyzer>
> <analyzer type="query">
> <tokenizer class="solr.JapaneseTokenizerFactory" mode="search"/>
> <filter class="solr.JapaneseBaseFormFilterFactory"/>
> <filter class="solr.JapanesePartOfSpeechStopFilterFactory" 
> tags="lang/stoptags_ja.txt"/>
> <filter class="solr.CJKWidthFilterFactory"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true" 
> words="lang/stopwords_ja.txt"/>
> <filter class="solr.SynonymGraphFilterFactory" expand="true" 
> ignoreCase="true" synonyms="lang/synonyms_ja.txt"/>
> <filter class="solr.JapaneseKatakanaStemFilterFactory" minimumLength="4"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.WordDelimiterGraphFilterFactory" preserveOriginal="1" 
> catenateWords="1"/>
> </analyzer>
> </fieldType>   
> 
> But it is working in analyzers
> analysis.png
> category search result
> productResult.png
> synonym search result
> synonymSearchResult.png
> synonym file
> synonyms_ja.txt
> 
> --
> CONFIDENTIALITY NOTICE: This e-mail and any attachments hereto are intended 
> only for use by the addressee(s) named herein and may contain legally 
> privileged and/or confidential information. If you are not the intended 
> recipient of this e-mail, you are hereby notified that any dissemination, 
> distribution or copying of this e-mail, and any attachments thereto, is 
> strictly prohibited. If you have received this e-mail in error, please notify 
> the sender by replying to this message and permanently delete the original 
> and any copy of this e-mail and any printout thereof.
> <synonyms_ja.txt>

Reply via email to