Solr on Tomcat not able to post xml files without error field unknown -


i installed solr on ubuntu following tutorial:

http://feinan.com/2012/05/19/how-to-install-solr-3-6-0-on-ubuntu-12-04-lts/

which got me , running fine.

but when want post new xml file (like ones in example/exampledocs), use following curl command:

curl http://localhsot:8080/solr/core0/update -h "content-type: text/xml" --data-binary @vidcard.xml

but continue error:

error: unknown field 'manu'

from other qa understand might wrong schema.xml file. fresh install, confused why have pre add each field xml upload (there ton of , it's not same schema wonder if have hand map in schema.xml before doing so).

in addition, had followed official tutorial, , using java -jar post.jar solr.xml monitor.xml command index new xml , fine.

but interested in being able update http how integrate our system.

full disclosure: new solr (perhaps obvious).

update @alexandre rafalovitch below, understand little more solr. problem remains. instance using vidcard.xml file default solr install example/exampledocs directory , went in , added dynamic field endings fields, still getting error: error: unknown field 'manu_s'

at this, trying figure out typical newbie pitfall keep falling (i.e. getting stuck on common stuff after installing, not trying yet far out of left field).

solr needs know types fields are, knows how parse/tokenize them. if want tokenize them same way, can use dynamicfield functionality match multiple names.

please note, update not allow send random xml. expects specific solr update xml format.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -