Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Now each analysis factory has explicitely documented SPI name which is stored in the static "NAME" field (LUCENE-8778).
Solr uses factories' simple class name in schema definition (like class="solr.WhitespaceTokenizerFactory"), but we should be able to also use more concise SPI names (like name="whitespace").
e.g.:
<fieldtype name="myfieldtype" class="solr.TextField"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt" /> <filter class="solr.PorterStemFilterFactory" /> </analyzer> </fieldtype>
would be
<fieldtype name="myfieldtype" class="solr.TextField"> <analyzer> <tokenizer name="whitespace"/> <filter name="keywordMarker" protected="protwords.txt" /> <filter name="porterStem" /> </analyzer> </fieldtype>
Attachments
Attachments
Issue Links
- causes
-
SOLR-16203 Using SPI lookups of analysis components results in factories that don't get ResourceLoaderAware.inform called on them (When using ClassicIndexSchemaFactory)
- Closed
- is blocked by
-
LUCENE-8948 Change "name" argument in ICU factories to "form"
- Closed
- is related to
-
SOLR-13690 Migrate field type configurations in default/example schema files to look up factories by "name"
- Closed
-
SOLR-13691 Add example field type configurations using "name" attributes to Ref Guide
- Closed
- relates to
-
LUCENE-8566 Deprecate methods in CustomAnalyzer.Builder which take factory classes
- Resolved
- links to