Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
4.3
Description
When I write SynonymFilterFactory' setting in schema.xml as follows, ...
<analyzer> <tokenizer class="solr.NGramTokenizerFactory" maxGramSize="2" minGramSize="2"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true" tokenizerFactory="solr.NGramTokenizerFactory" maxGramSize="2" minGramSize="2"/> </analyzer>
IllegalArgumentException ("Unknown parameters") occurs.
Caused by: java.lang.IllegalArgumentException: Unknown parameters: {maxGramSize=2, minGramSize=2} at org.apache.lucene.analysis.synonym.FSTSynonymFilterFactory.<init>(FSTSynonymFilterFactory.java:71) at org.apache.lucene.analysis.synonym.SynonymFilterFactory.<init>(SynonymFilterFactory.java:50) ... 28 more
However TokenizerFactory's params should be set to loadTokenizerFactory method in [FST|Slow]SynonymFilterFactory. (ref. SOLR-2909)
I think, the problem was caused by LUCENE-4877 ("Fix analyzer factories to throw exception when arguments are invalid") and SOLR-3402 ("Parse Version outside of Analysis Factories").
Attachments
Attachments
Issue Links
- is broken by
-
LUCENE-4877 Fix analyzer factories to throw exception when arguments are invalid
- Closed