Monday, 15 March 2010

solr schema.xml validate -



solr schema.xml validate -

i have problem schema validation of solr, shows 500 error.

simpleposttool: version 1.4 simpleposttool: posting files http://localhost:8081/solr-project/update.. simpleposttool: posting file sample-solr.xml simpleposttool: fatal: solr returned error #500 error interno del servidor

the field of schema.xml of solr this:

<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>

no need follow order equal schema.xml, id field required.

sample-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>

compile project , execute test:

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

what can be?. thanks!.

if solr 4+, have @ console started solr or in admin web ui under logs screen. real message on server side , tell problem is.

xml solr

No comments:

Post a Comment