Note that there are some explanatory texts on larger screens.

plurals
  1. POindex a csv file solr - missing content stream
    primarykey
    data
    text
    <pre><code>Error is as follows : [root@hdqsltest1 garyTestDocs]# curl http://localhost:8983/solr/update/csv? literal.id=book2&amp;commit --data-binary @sample.csv -H 'Content-type:text/plain; charset=utf- 8' [1] 16541 bash: commit: command not found </code></pre> <p>Response looks like this - </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&gt; &lt;title&gt;Error 400 missing content stream&lt;/title&gt; &lt;/head&gt; &lt;body&gt;&lt;h2&gt;HTTP ERROR 400&lt;/h2&gt; &lt;p&gt;Problem accessing /solr/update/csv. Reason: &lt;pre&gt; missing content stream&lt;/pre&gt;&lt;/p&gt;&lt;hr /&gt;&lt;i&gt;&lt;small&gt;Powered by Jetty://&lt;/small&gt; &lt;/i&gt;&lt;br/&gt; &lt;br/&gt; &lt;br/&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>sample.csv input - </p> <pre><code> module,meets,question,response General Questions,,"Please provide us a detailed company background","We are great" </code></pre> <p>schema.xml - </p> <pre><code> &lt;field name="module" type="text" indexed="true" stored="true" /&gt; &lt;field name="meets" type="text" indexed="true" stored="true" /&gt; &lt;field name="question" type="text" indexed="true" stored="true" /&gt; &lt;field name="response" type="text" indexed="true" stored="true" /&gt; </code></pre> <p>solrconfig.xml</p> <pre><code> &lt;!-- CSV update handler, loaded on demand --&gt; &lt;requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy"&gt; &lt;lst name="defaults"&gt; &lt;str name="separator"&gt;,&lt;/str&gt; &lt;str name="header"&gt;true&lt;/str&gt; &lt;str name="encapsulator"&gt;"&lt;/str&gt; &lt;/lst&gt; &lt;/requestHandler&gt; </code></pre> <p>Another sample.csv</p> <pre><code> module,meets,question,response General Questions,,"Please provide us a detailed company background","Yes" </code></pre> <p>I have enabled remote streaming. my query is </p> <pre><code> curl http://localhost:8983/solr/update/csv?literal.id=book12&amp;commit=true --data-binary @sample.csv -H 'Content-type:text/plain; charset=utf-8' </code></pre> <p>So what am i doing wrong. Please guide. </p> <p>Version of solr = 3.6.2. </p> <p>The whole point of indexing it is to be able to query over fields ? I am also wondering if a csv file can be extracted to place its text in various fields, i know it places the text of the csv file in content field. Any suggestions on the update/extract ? I have asked 2 qns here. Thank you.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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