[ https://issues.apache.org/jira/browse/SOLR-8131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15020393#comment-15020393 ]
Uwe Schindler commented on SOLR-8131: ------------------------------------- bq. I have no idea how to make the tests pass with this change. We rewrite all the schema files to managed-schema . Firstly we need to give the tests write permissions to managed-schema ( solr-tests.policy ) . More importantly tests which don't run in their own VM will overwrite the files under test-files/solr/collection1/solr ? Please don't do this permanently! Maybe only rewrite the old schemas once (automatically), disabling the security manager (e.g. run tests with {{-Dtests.useSecurityManager=false}}). After that all schemas should be converted. Then just cleanup the directory and remove the old files and commit the changes. After that nothing should change the schemas anymore? The general rule is to make a clone of the core directory for tests that actually modify the core directory, e.g. update the schema. Most tests already do this. > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org