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
何ができますか?ありがとう!。