[
https://issues.apache.org/jira/browse/SOLR-14151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197297#comment-17197297
]
Daniel Worley commented on SOLR-14151:
--------------------------------------
I've been testing these updates against some plugin code that utilizes a custom
encoder for the DelimitedPayloadTokenFilterFactory. It appears that Lucene
level code does not pick up on loaded packages. I believe this is due to the
SolrResourceLoader defaulting to a list of hardcoded packages when a list of
subpackages is not provided which will be the case with Lucene level code.
To reproduce you could add a dummy PayloadEncoder to your sample package then
try using it on a DelimitedPayloadTokenFilterFactory in
TestPackages::testSchemaPlugins, something like:
{{" 'filters' : [\{ 'class':'solr.DelimitedPayloadTokenFilterFactory',
'encoder':'schemapkg:my.pkg.MyEncoder' }]\n";}}
> Make schema components load from packages
> -----------------------------------------
>
> Key: SOLR-14151
> URL: https://issues.apache.org/jira/browse/SOLR-14151
> Project: Solr
> Issue Type: Sub-task
> Reporter: Noble Paul
> Assignee: Noble Paul
> Priority: Major
> Labels: packagemanager
> Fix For: 8.7
>
> Time Spent: 12h 40m
> Remaining Estimate: 0h
>
> Example:
> {code:xml}
> <fieldType name="mytype1" class="pkg1:my.pkg.FieldTypeImpl">
> <analyzer type="index">
> <tokenizer class="pkg2:my.pkg2.MyTokenizerFactory"/>
> <filter class="pkg2:my.pkg3.MyFilterFactory" generateWordParts="1"
> generateNumberParts="0" catenateWords="0"
> catenateNumbers="0" catenateAll="0"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.FlattenGraphFilterFactory"/>
> </analyzer>
> </fieldType>
> {code}
> * When a package is updated, the entire {{IndexSchema}} object is refreshed,
> but the SolrCore object is not reloaded
> * Any component can be prefixed with the package name
> * The semantics of loading plugins remain the same as that of the components
> in {{solrconfig.xml}}
> * Plugins can be registered using schema API
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]