且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将字段添加到solr模式中导致“无流".错误

更新时间:2023-12-01 21:58:10

您正在使用哪个版本的Solr?您正在使用ClassicSchemaFactory还是ManagedIndexSchemaFactory?

What version of Solr you are using? Are you using the ClassicSchemaFactory or the ManagedIndexSchemaFactory?

如果配置中有一个名为schema.xml的文件,则说明您使用的是经典schema.工厂.但是,Schema API只能与ManagedIndexSchemaFactory一起使用.

If your config has a file named schema.xml then you are using the classic schema . factory. But Schema API can be used only with the ManagedIndexSchemaFactory.

如果您有一个使用ClassicIndexSchemaFactory的现有Solr集合,并且希望转换为使用托管模式,则只需修改solrconfig.xml以指定ManagedIndexSchemaFactory的使用即可.

If you have an existing Solr collection that uses ClassicIndexSchemaFactory, and you wish to convert to use a managed schema, you can simply modify the solrconfig.xml to specify the use of the ManagedIndexSchemaFactory.

您可以阅读有关 查看全文