我试图让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)