1742
Views
3
Comments
Solved
[Elasticsearch Core] Elastic search - Bulk insert returns 406 Not Acceptable
Question
Forge component by Labs
3
Published on 19 Oct 2017

Did anyone succeed in bulk-inserting records into Elastic Search?

I tried using the elastic-components in the forge and replacing url with the cloud-evaluation-url I got frorn elastic.

I constantly get the message above. When trying tot test the Webservice in Service studio, service studio hangs.  

Singe insert, query and delete does work, only bulk-actions keep failing.

Any idea?

Rank: #1892
Solution

Thanks for your reply. 

An example can be found in the Forge (elastic web-example). 

Found the solution by trying getpostman and reproduce the error in that tool. Problem was the content/type that had to be set in the header to : Application/Json. 


Rank: #232

Hi Joost,


Have you tried the call using the bulk API via curl or the Kibana test tools?


What is the HTTP method you're using? Can you share an example of the content you're sending to Elasticsearch?


Cheers,

Renato

 

Joost Rutten wrote:

Did anyone succeed in bulk-inserting records into Elastic Search?

I tried using the elastic-components in the forge and replacing url with the cloud-evaluation-url I got frorn elastic.

I constantly get the message above. When trying tot test the Webservice in Service studio, service studio hangs.  

Singe insert, query and delete does work, only bulk-actions keep failing.

Any idea?



Rank: #1892
Solution

Thanks for your reply. 

An example can be found in the Forge (elastic web-example). 

Found the solution by trying getpostman and reproduce the error in that tool. Problem was the content/type that had to be set in the header to : Application/Json.