You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jörg Agatz <jo...@googlemail.com> on 2009/12/16 23:51:19 UTC
Re: Multicore - Post xml to core0, core1 or core2
Good eavening,
I tryed to indexing the Test csv..
i use this: java -Durl=http://localhost:8983/solr/core0/update -jar post.jar
books.csv
But i become an error.
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8,
other encodings are not currently supported
SimplePostTool: POSTing files to http://localhost:8983/solr/core0/update..
SimplePostTool: POSTing file books.csv
SimplePostTool: FATAL: Solr returned an error:
Unexpected_character_i_code_105_in_prolog_expected___at_rowcol_unknownsource_11
I dont know what that mean!
King
Re: Multicore - Post xml to core0, core1 or core2
Posted by Erik Hatcher <er...@gmail.com>.
Using post.jar to index a CSV file isn't exactly straightforward.
But can be done like this:
java -Durl=http://localhost:8983/solr/update/csv -Dcommit=no -jar
post.jar books.csv
followed by:
java -Dcommit=yes -jar post.jar
You have to be sure to specify the URL that maps to the CSV update
handler, but you have to turn off commit as it tries to send a <commit/
> to that URL also.
Erik
On Dec 16, 2009, at 5:51 PM, Jörg Agatz wrote:
> Good eavening,
>
> I tryed to indexing the Test csv..
> i use this: java -Durl=http://localhost:8983/solr/core0/update -jar
> post.jar
> books.csv
>
> But i become an error.
>
> SimplePostTool: WARNING: Make sure your XML documents are encoded in
> UTF-8,
> other encodings are not currently supported
> SimplePostTool: POSTing files to http://localhost:8983/solr/core0/update
> ..
> SimplePostTool: POSTing file books.csv
> SimplePostTool: FATAL: Solr returned an error:
> Unexpected_character_i_code_105_in_prolog_expected___at_rowcol_unknownsource_11
>
>
> I dont know what that mean!
>
> King