[
https://issues.apache.org/jira/browse/SOLR-8131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15020943#comment-15020943
]
Ishan Chattopadhyaya commented on SOLR-8131:
--------------------------------------------
bq. All tests that use the manages schema factory have to be rewritten to use
SolrTestcaseJ4's copy functionality to create a writeable clone.
Not sure if this helps here, but I once wrote a test based on managed schema,
{{SpatialRPTFieldTypeTest}} (extends AbstractBadConfigTestBase, which extends
SolrTestcaseJ4).
AFAICT, that test copied all configs and schemas specified into temp directory.
Then, it tried to find "managed-schema", couldn't find it and loaded
schema-minimal.xml after copying it over to "managed-schema".
{noformat}
o.a.s.s.ManagedIndexSchemaFactory The schema is configured as managed, but
managed schema resource managed-schema not found - loading non-managed schema
schema-minimal.xml instead
{noformat}
Do you think the needed schema file for each test can be copied over to the
temp directory as "schema-minimal.xml", from where it gets loaded up as
"managed-schema"?
> Make ManagedIndexSchemaFactory as the default in Solr
> -----------------------------------------------------
>
> Key: SOLR-8131
> URL: https://issues.apache.org/jira/browse/SOLR-8131
> Project: Solr
> Issue Type: Wish
> Components: Data-driven Schema, Schema and Analysis
> Reporter: Shalin Shekhar Mangar
> Labels: difficulty-easy, impact-high
> Fix For: 5.4, Trunk
>
> Attachments: SOLR-8131.patch
>
>
> The techproducts and other examples shipped with Solr all use the
> ClassicIndexSchemaFactory which disables all Schema APIs which need to modify
> schema. It'd be nice to be able to support both read/write schema APIs
> without needing to enable data-driven or schema-less mode.
> I propose to change all 5.x examples to explicitly use
> ManagedIndexSchemaFactory and to enable ManagedIndexSchemaFactory by default
> in trunk (6.x).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]