Re: Help with Setup

2007-04-27 Thread Sean Bowman

That's an awesome tip to keep in ol' toolbox, Christian.


Updating a distributed collection

2007-04-26 Thread Sean Bowman

If we configure multiple servers to replicate an index and hide them
behind a load balancer, how exactly do we update documents to the
index?  Do we have to send updates just to the master server directly?
Or does the slave somehow manage to forward the update request to the
master server behind the scenes?

Maybe there's more of a detailed guide to the master/slave
configuration I'm missing?  It seems mostly reference material on the
wiki.


Re: Updating a distributed collection

2007-04-26 Thread Sean Bowman

Thanks.  Just wanted to check before we dove into configuring the load
balancers.

On 4/26/07, Yonik Seeley [EMAIL PROTECTED] wrote:

On 4/26/07, Sean Bowman [EMAIL PROTECTED] wrote:
 If we configure multiple servers to replicate an index and hide them
 behind a load balancer, how exactly do we update documents to the
 index?  Do we have to send updates just to the master server directly?

Yes.  The load-balancer part is only for high availability for queries.

-Yonik



Re: Help with Setup

2007-04-26 Thread Sean Bowman

Try:

curl http://localhost:8080/solr/update --data-binary 'adddocfield
name=id2008/fieldfield name=storyTextThe Rain in Spain Falls
Mainly In The Plain/
field/doc/add'

And see if that works.  I don't think curl lets you put a filename in
for the --data-binary parameter.  Has to be the actual data, though
something like this might also work:

curl http://localhost:8080/solr/update --data-binary `cat articles.xml`

Those are open ticks, not apostrophes.

On 4/26/07, Ryan McKinley [EMAIL PROTECTED] wrote:


 paladin:/data/solr mtorgler1$ curl http://localhost:8080/solr/update
 --data-binary articles.xml
 result status=1org.xmlpull.v1.XmlPullParserException: only
 whitespace content allowed before start tag and not a (position:
 START_DOCUMENT seen a... @1:1)
 at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
 at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)

My guess is you have some funny character at the start of the document.
  I have seen funny chars show show up when i edit a UTF-8 file and save
it as ASCII.  If you don't see it in your normal editor, try a different
one.

If that does not help, start with the working example and add modify a
little bit at a time...

ryan