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/11/25 10:53:08 UTC

Multicore - Post xml to core0, core1 or core2

Hallo, at the moment i tryed to create a Solr instance wite more then one
Cores

I use solr 1.4 and multicore Runs :-)
But i dont know how i post a XML in one of my cores. At the Moment i use

"java -jar post.jar *.xml"

now i will fill the core0 index with core0*.xml , and core1 with core1*.xml
But how?
in the wiki i cant find anythink about that.

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


Re: Multicore - Post xml to core0, core1 or core2

Posted by Jörg Agatz <jo...@googlemail.com>.
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 Jörg Agatz <jo...@googlemail.com>.
Thanks, it works realy fine..

Maby you have an Ideo, to search in Core0 and Core1

I want to search in all cores, or only in 2 of 3 cores.

Re: Multicore - Post xml to core0, core1 or core2

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
try this
java -Durl=http://localhost:8983/solr/core0/update -jar post.jar *.xml


On Wed, Nov 25, 2009 at 3:23 PM, Jörg Agatz <jo...@googlemail.com> wrote:
> Hallo, at the moment i tryed to create a Solr instance wite more then one
> Cores
>
> I use solr 1.4 and multicore Runs :-)
> But i dont know how i post a XML in one of my cores. At the Moment i use
>
> "java -jar post.jar *.xml"
>
> now i will fill the core0 index with core0*.xml , and core1 with core1*.xml
> But how?
> in the wiki i cant find anythink about that.
>
> King
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com