Note that there are some explanatory texts on larger screens.

plurals
  1. POSolr on Tomcat not able to post xml files without error field unknown
    primarykey
    data
    text
    <p>I just installed Solr on Ubuntu with the following tutorial: </p> <p><a href="http://feinan.com/2012/05/19/how-to-install-solr-3-6-0-on-ubuntu-12-04-lts/" rel="nofollow">http://feinan.com/2012/05/19/how-to-install-solr-3-6-0-on-ubuntu-12-04-lts/</a></p> <p>which got me up and running fine.</p> <p>But when I want to post a new XML file (like the ones in example/exampledocs), I use the following curl command:</p> <p><code>curl http://localhsot:8080/solr/core0/update -H "Content-Type: text/xml" --data-binary @vidcard.xml</code></p> <p>but I continue to get the error:</p> <p><code>ERROR: unknown field 'manu'</code></p> <p>From other QA I understand that this might be something wrong with my schema.xml file. But with a fresh install, I am confused why I would have to pre add each field for all the XML i am about to upload (there is a ton of it and it's not all the same schema so I wonder if I really have to hand map it in schema.xml before doing so).</p> <p>In addition, I had previously followed the <a href="http://lucene.apache.org/solr/api-3_6_2/doc-files/tutorial.html" rel="nofollow">official tutorial</a>, and using the <code>java -jar post.jar solr.xml monitor.xml</code> command to index new xml and that was fine. </p> <p>But I am interested in being able to update from HTTP as this is how it will integrate with our system.</p> <p>Full disclosure: I am new to solr (perhaps this is obvious).</p> <p><strong>Update</strong> Thanks to @Alexandre Rafalovitch below, I understand a little more about Solr. But the problem remains. For instance I am using the vidcard.xml file from the default Solr install example/exampledocs directory and went in and added the dynamic field endings to all the fields, but I am still getting the error: <code>ERROR: unknown field 'manu_s'</code></p> <p>At this, I am trying to figure out what typical newbie pitfall I keep falling into (i.e. getting stuck on some common stuff just after installing, not trying yet to do anything too far out of left field).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload