0

Solr のスキーマ検証に問題があり、500 エラーが表示されます。

SimplePostTool: version 1.4
SimplePostTool: POSTing files to http://localhost:8081/solr-project/update..
SimplePostTool: POSTing file sample-solr.xml
SimplePostTool: FATAL: Solr returned an error #500 Error Interno del Servidor

Solrの schema.xml のフィールドは次のとおりです。

 <field>
   <field name="id" type="string" indexed="true" stored="true" required="true" />
   <field name="url" type="string" stored="true"/>
   <field name="content" type="text_es" indexed="true" stored="true" />
 </field>
 <uniqueKey>id</uniqueKey>

schema.xml と同じ順序に従う必要はありません。id必須フィールドです。

サンプルsolr.xml

<?xml version="1.0"?>
    <add>
      <doc>
       <field name="id">id product</field>
       <field name="url">http://www.web.com/content/direct/index.html</field>
       <field name="content">field content text</field> 
     </doc>
    </add>

プロジェクトをコンパイルし、テストで実行します。

~/opt/solr/solr/example/exampledocs$ java -jar -Durl=http://localhost:8081/solr-project/update post.jar sample-solr.xml

何ができますか?ありがとう!。

4

1 に答える 1

1

これがSolr4+の場合は、Solrを起動したコンソール、またはログ画面の管理WebUIを確認してください。実際のメッセージはサーバー側にあり、問題が何であるかを示します。

于 2013-02-13T13:51:24.020 に答える