[
https://issues.apache.org/jira/browse/SOLR-10010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Issei Nishigata updated SOLR-10010:
-----------------------------------
Attachment: SOLR-10010.patch
ManagedIndexSchema#postReadInform seems to be called both when reading the
managed-schema file at Solr startup and when using Schema API.
this patch calls this postReadInform() only when it read the managed-schema
file, and modified details only super.postReadInform().
I created managedPostReadInform and make solr use this new method when solr
calls Schema API.
I do not know if this fixing is smart or not.
Also, the test code I created in fixing it might not be appropriate.
But I think that it has sufficient details to reproduce this problem.
> 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
> Attachments: SOLR-10010.patch
>
>
> 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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]