2013-10-24 6 views
0

나는 인터넷 어디서나이 정보를 찾을 수없는 것 같다. 어쩌면 누군가가 도울 수 있습니다.바람둥이의 솔 7

여기 내 구성입니다 :

<solr persistent="false"> 

    <!-- 
    adminPath: RequestHandler path to manage cores. 
    If 'null' (or absent), cores will not be manageable via request handler 
    --> 
    <cores adminPath="/admin/cores" defaultCoreName="collection1"> 
    <core name="collection1" instanceDir="." /> 
    </cores> 

SOLR가 설치에/옵션/SOLR /를 solr.xml 파일이있는 곳도있다. tomcat7에 배포하고 localhost : 8080/solr에서 직접 메인 페이지에 액세스 할 수 있습니다. 그러나 코어를 추가하는 방법을 모르며 localhost : 8080/solr/admin을 탐색하면 다음과 같은 오류가 표시됩니다. 하나 정말 얻을 수없는 과거 :

HTTP Status 404 - missing core name in path 
type Status report 
message missing core name in path 
description The requested resource is not available. 
Apache Tomcat/7.0.42 

, 제 시간 사용자 인이 꽤 혼란 잘못 뭐죠 저를 정말 정확히 알고 자사 자세한 충분하지. 생각?

답변

0

다음은 내 샌드 박스의 solr.xml 예제입니다. 희망은 도움이 :

<?xml version="1.0" encoding="UTF-8" ?> 
<solr persistent="true" sharedLib="lib"> 
    <cores hostPort="8080" 
     hostContext="solr" 
     adminPath="/admin/cores"> 
    <core name="yourcorenamehere" 
      instanceDir="coredirectoryhere" 
      dataDir="data" 
      schema="schema.xml" 
      config="solrconfig.xml" 
      loadOnStartup="true" 
      transient="false" /> 
    </cores> 
</solr> 
관련 문제