[
https://issues.apache.org/jira/browse/SOLR-10010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15831261#comment-15831261
]
Issei Nishigata commented on SOLR-10010:
----------------------------------------
I guess this is causing
org.apache.lucene.analysis.synonym.SynonymFilterFactory#loadSynonyms doesn't
set tokenizerFactory.minGramSize="2", tokenizerFactory.maxGramSize="2" when
calling loader.inform() ( => constructor of
"org.apache.solr.schema.IndexSchema")
(tokArgs is empty)
> NGramTokenizer with SynonymFilterFacory doesn't work properly when using
> Managed-Schema
> ---------------------------------------------------------------------------------------
>
> Key: SOLR-10010
> URL: https://issues.apache.org/jira/browse/SOLR-10010
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Schema and Analysis
> Reporter: Issei Nishigata
>
> NGramTokenizer with SynonymFilterFacory doesn't work properly when using
> Managed-Schema
> When using Managed-Schema, it doesn't work properly with the following
> settings.
> {code:title=managed-schema}
> <field name="bigram" type="text_bigram" indexed="true" stored="true"/>
> <fieldType name="text_bigram" class="solr.TextField"
> positionIncrementGap="100"
> autoGeneratePhraseQueries="false">
> <analyzer type="index">
> <tokenizer class="solr.NGramTokenizerFactory" minGramSize="2"
> maxGramSize="2"/>
> <filter class="solr.SynonymFilterFactory"
> synonyms="synonyms.txt"
>
> tokenizerFactory="solr.NGramTokenizerFactory"
>
> tokenizerFactory.minGramSize="2" tokenizerFactory.maxGramSize="2"
> ignoreCase="true"
> expand="true"/>
> </analyzer>
> </fieldType>
> {code}
> {code:title=synonyms.txt}
> ab,ba
> {code}
> {code:title=expected}
> querystring => "bigram:ab"
> parsedquery => "bigram:ab bigram:ba"
> {code}
> {code:title=actual}
> querystring => "bigram:ab"
> parsedquery => "bigram:ab"
> {code}
> When using ClassicIndexSchemaFactory, works peroperly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]