You are missing the content type, so your CSV/JSON is being
(mis-)treated as XML.

If you run "java -jar post.jar -h", you will see the correct usage example:
*) java -Dtype=text/csv -jar post.jar *.csv
*) java -Dtype=text/csv -jar post.jar *.csv

You could also try:
*) java -Dtype=text/csv -jar post.jar *.csv

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Tue, May 27, 2014 at 2:59 PM, Mukundaraman valakumaresan
<muk...@8kmiles.com> wrote:
> Yes I am using post .jar
>
> java -jar post.jar *.csv
> java -jar post.jar *.json
>
>
> On Tue, May 27, 2014 at 1:17 PM, Alexandre Rafalovitch
> <arafa...@gmail.com>wrote:
>
>> What's the command line you are using? Or a sequence of steps if you
>> are not using post.jar.
>>
>> Regards,
>>    Alex.
>> Personal website: http://www.outerthoughts.com/
>> Current project: http://www.solr-start.com/ - Accelerating your Solr
>> proficiency
>>
>>
>> On Tue, May 27, 2014 at 2:34 PM, Mukundaraman valakumaresan
>> <muk...@8kmiles.com> wrote:
>> > Hi
>> >
>> > I am using solr version 4.8. When I uploaded the csv and json provided in
>> > the example docs folder. I am getting a 400 response and the following
>> > exception
>> >
>> > Could be a bug...
>> >
>> > 7955 [searcherExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  –
>> > QuerySenderListener sending requests to Searcher@3a5b069c[collection1]
>> > main{StandardDirectoryReader(segments_2:3:nrt _0(4.8):C32)}
>> > 7956 [searcherExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  –
>> > QuerySenderListener done.
>> > 7956 [searcherExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  –
>> > [collection1] Registered new searcher Searcher@3a5b069c[collection1]
>> > main{StandardDirectoryReader(segments_2:3:nrt _0(4.8):C32)}
>> > 7957 [qtp756319399-19] INFO
>> >  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1]
>> > webapp=/solr path=/update params={commit=true} {commit=} 0 975
>> > 11929 [qtp756319399-16] INFO
>> >  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1]
>> > webapp=/solr path=/update params={} {} 0 2
>> > 11930 [qtp756319399-16] ERROR org.apache.solr.core.SolrCore  –
>> > org.apache.solr.common.SolrException: Unexpected character '[' (code 91)
>> in
>> > prolog; expected '<'
>> >  at [row,col {unknown-source}]: [1,1]
>> > at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:176)
>> > at
>> >
>> org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
>> > at
>> >
>> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
>> > at
>> >
>> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
>> > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952)
>>

Reply via email to