当我重新加载solr admin .Error加载类'solr.SortableIntField'时就发生了

时间:2017-05-22 14:28:23

标签: django solr

我做的项目遵循'Django by examples',当我添加一个搜索引擎与Solr和Haystack时,在构建索引时发生了一些错误的事情。   当我运行以下命令时:

python manage.py build_solr_schema

我得到了以下XML

    <?xml version="1.0" ?>

<!--

 Licensed to the Apache Software Foundation (ASF) under one or more
Save the following output to 'schema.xml' and place it in your Solr configuration directory.
 contributor license agreements.  See the NOTICE file distributed with
--------------------------------------------------------------------------------------------
 this work for additional information regarding copyright ownership.

 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<schema name="default" version="1.5">
  <types>
    <fieldtype name="string"  class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
    <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
    <fieldtype name="binary" class="solr.BinaryField"/>

它不完整,我将整个XML复制到solr / blog / config / schema.xml 然后我去http://loaclhost:8984/solr重新加载我的核心 但这不起作用

enter image description here

我该怎么做才能解决它?

0 个答案:

没有答案