Re: Adding _id to JSON instead of URL when adding doc

2014-01-16 Thread Jason Fill
Excellent, thank you for the clarification. For some reason I was thinking that the bulk operation might put a different type of load on the service just to spin up that operation. Again, thanks for your time! On Wednesday, January 15, 2014 8:06:32 AM UTC-6, Jörg Prante wrote: > > Bulk request

Re: Adding _id to JSON instead of URL when adding doc

2014-01-15 Thread joergpra...@gmail.com
Bulk request is in ES the same as single request, it is just concatenated so a bulk can be sent from a client over the network in a single step, saving a lot of roundtrips. So if you send a single request, for ES it does not matter if you choose single operation or bulk operation. Jörg -- You r

Re: Adding _id to JSON instead of URL when adding doc

2014-01-15 Thread Jason Fill
Jörg, Thanks for your response, I knew the bulk request was an option, however is there any performance impact using that method to send one off updates? I just don't want to call the bulk request for single item additions/updates if it is going to adversely affect performance. Any thoughts o

Re: Adding _id to JSON instead of URL when adding doc

2014-01-14 Thread joergpra...@gmail.com
You can send a bulk request http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-bulk.html Jörg -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an em

Adding _id to JSON instead of URL when adding doc

2014-01-14 Thread Jason Fill
I have the use case for adding the id to the json doc instead of the URL - basically the URL has to be static (so I cannot add the id each time). Other than using the Bulk creation option, is this possible via the REST API? So I want to send {"_id": "my-id", "first_name": "Jason"} to http