相关疑难解决方法(0)

Solr错误创建核心:在模式中找不到fieldType [x]

我试图让Solr核心与我自己一起运行schema.xml,但是Solr(版本5.2.1)一直在抱怨缺少的fieldType元素甚至不在我的fields定义中.

org.apache.solr.common.SolrException: fieldType 'booleans' not found in the schema
Run Code Online (Sandbox Code Playgroud)

每当我添加一个'missing'时,会fieldtype弹出另一个错误,抱怨另一个fieldType丢失,比如longs等等,直到我将它们全部添加并且接受了架构而没有错误.

现在为什么fieldtype在没有用的时候我必须提供这些元素?

config.xml我有:

<schemaFactory class="ClassicIndexSchemaFactory"/>
Run Code Online (Sandbox Code Playgroud)

这是我的schema.xml:

<schema name="collections" version="1.5">

<fields>
    <field name="id_object" type="string" indexed="true" stored="true" />
    <field name="id_organization" type="string" indexed="true" stored="true"  />
    <field name="title" type="string" indexed="true" stored="true"  />
    <field name="artist" type="string" indexed="true" stored="true"  />
    <field name="searchname" type="string" indexed="true" stored="true"  />
    <field name="technique_group" type="string" indexed="true" stored="true"  />
    <field name="technique" type="string" indexed="true" stored="true"  />
    <field …
Run Code Online (Sandbox Code Playgroud)

xml configuration schema solr

7
推荐指数
2
解决办法
5324
查看次数

标签 统计

configuration ×1

schema ×1

solr ×1

xml ×1