2017-09-13 7 views
0

:는 SOLR 코어를 만들 수 없습니다 : _version_ 필드 스키마에 존재하고 검색 및 검색 할 및 다중하지해야합니다 전체 오류

<?xml version="1.0" encoding="UTF-8" ?> 
<schema name="product_v2" version="1.5"> 

    <field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/> 

    <!-- points to the root document of a block of nested documents. Required for nested 
     document support, may be removed otherwise 
    --> 
    <field name="_root_" type="string" indexed="true" stored="false"/> 

    <!-- Only remove the "id" field if you have a very good reason to. While not strictly 
     required, it is highly recommended. A <uniqueKey> is present in almost all Solr 
     installations. See the <uniqueKey> declaration below where <uniqueKey> is set to "id". 
    --> 
    <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 
    <field name="sku" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 
    <field name="title" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 
    <field name="type" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 


    <!-- Field to use to determine and enforce document uniqueness. 
     Unless this field is marked with required="false", it will be a required field 
     --> 
    <uniqueKey>id</uniqueKey> 

    <fieldType name="string" class="solr.StrField" sortMissingLast="true" /> 
    <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/> 
    <fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> 
    <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/> 
    <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> 
    <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/> 
</schema> 

불행히도 나는 아무 생각이

Error CREATEing SolrCore 'product_v2': Unable to create core [product_v2] Caused by: _version_ field must exist in schema and be searchable (indexed or docValues) and retrievable(stored or docValues) and not multiValued (_version_ is multiValued 

의 schema.xml 무엇 할 것. 내가 알 수있는 한, 버전은 모든 요구 사항을 충족합니다. 나는 문제없이 solr를 공정한 양으로 사용했지만, solrcloud + zookeeper를 처음 사용합니다.

SOLR 버전은

+0

스키마를 변경 한 후 컬렉션을 다시로드 했습니까? –

+0

예, 컬렉션을 새로 고침했습니다. 문제/메시지가 없습니다. 다음 코어를 만들려고 다음 메시지를 제공합니다. – hendr1x

+1

오류 메시지에 "콜렉션"product_v2 "필드"_version_ "이 다중 값을 갖습니다. 복수 값 false 여야합니다. –

답변

0

가 좋아 ... 그래서 제가 정확한 답변을하지 않습니다하지만 난이 문제를지나 이동 않았다 그래서 나는 것이라고 생각 제공 할 수있는 모든 도움을 6.3.0

감사입니다 일을 제대로하기 위해 한 일에 대한 정보를 제공하십시오.

1) 난 그냥 작업 예제를 얻고 다음에/usr에 있었다 내가 수집 코어의 SOLR 폴더를 작성하지 않은) 기능

이 벗겨 나를 위해 (파일에 대한 적절한 소유권을 할당하기로 결정 /local/solr/server/solr)... core.properties 파일을 가지고 있지 않은 것이 문제를 망쳤다 고 생각합니다.

3) 나는이 문제를 생각하지 않는다 (사육사을 업로드 한 후 SOLR 디렉토리에서 설정 파일을 삭제하지 않았지만, 난 그냥 사용하여 다시로드하고, 내가 SOLR를 다시 시작하지 않은))

4주의 싶어 API