{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added]"}
It seems a mystery to me. I've read through this thread and other posts from Lukáš Vlček, but I'm not even able to get the most basic bulk operation going.
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
Those two suggestions did the trick! I was leaving out the document contents to simplify the test, but obviously that was an over-simplification... Thanks Shay, Clint.
At the risk of outlasting my welcome, I did have a separate bulk index question: What is the limit on # of documents I can ship in one API call to _bulk? I'm sure the answer depends on size of docs and specs of my server, but do you have any kind of guidelines on what would constitute a ridiculously huge payload?
Steve
On Wed, 2011-01-05 at 14:31 +0200, Shay Banon wrote:
> There should also be the actual json document to index, in another new
> line, and then a new line to end it all.
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
The bulk request ends up being represented in memory on the receiving node,
and broken down in request per shard. So its really up to the memory
allocation and the number of concurrent bulk requests.
Those two suggestions did the trick! I was leaving out the document
contents
to simplify the test, but obviously that was an over-simplification...
Thanks Shay, Clint.
At the risk of outlasting my welcome, I did have a separate bulk index
question: What is the limit on # of documents I can ship in one API call to
_bulk? I'm sure the answer depends on size of docs and specs of my server,
but do you have any kind of guidelines on what would constitute a
ridiculously huge payload?
Steve
Clinton Gormley wrote:
On Wed, 2011-01-05 at 14:31 +0200, Shay Banon wrote:
There should also be the actual json document to index, in another new
line, and then a new line to end it all.
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.