[ https://issues.apache.org/jira/browse/SOLR-13593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881010#comment-16881010 ]
Tomoko Uchida commented on SOLR-13593: -------------------------------------- Hi, The changes seem trivial so I will be able to add necessary tests and commit it in a few weeks, but before proceeding I would like to make sure the migration roadmap for this change. If the proposal gains consensus I think we also should start to consider encouraging users to use "name=..." instead of "class=..." (so that we could remove "class=..." in a future release to reduce the code complexity). The first step to do so would be changing the default managed-schema file and Solr Ref Guide to use "name=...", but I'm not sure about when we should do so. Would it be better if we include the change in a 8.x release, or should we wait until 9.0? Are there recommended ways/approaches for such migration? > Allow to specify analyzer components by their SPI names in schema definition > ---------------------------------------------------------------------------- > > Key: SOLR-13593 > URL: https://issues.apache.org/jira/browse/SOLR-13593 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: Schema and Analysis > Reporter: Tomoko Uchida > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > 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.: > {code:xml} > <fieldtype name="myfieldtype" class="solr.TextField"> > <analyzer> > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt" > /> > <filter class="solr.PorterStemFilterFactory" /> > </analyzer> > </fieldtype> > {code} > would be > {code:xml} > <fieldtype name="myfieldtype" class="solr.TextField"> > <analyzer> > <tokenizer name="whitespace"/> > <filter name="keywordMarker" protected="protwords.txt" /> > <filter name="porterStem" /> > </analyzer> > </fieldtype> > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org