1774
Views
3
Comments
Solved
[Elasticsearch Core] Elastic search - Bulk insert returns 406 Not Acceptable
Question
elasticsearch-core
Web icon
Forge asset by Labs

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?

2017-04-03 06-54-35
Joost Rutten
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. 


2018-06-07 09-54-29
Renato Torres

Glad you solved it.


I also have been struggling with Elasticsearch API (specially the search part) and the direct calls using curl / Kibana test tools always help.


I'll give Postman a look - thanks. 


Cheers,

Renato


Joost Rutten wrote:

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. 




2018-06-07 09-54-29
Renato Torres

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?



2017-04-03 06-54-35
Joost Rutten
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. 


2018-06-07 09-54-29
Renato Torres

Glad you solved it.


I also have been struggling with Elasticsearch API (specially the search part) and the direct calls using curl / Kibana test tools always help.


I'll give Postman a look - thanks. 


Cheers,

Renato


Joost Rutten wrote:

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. 




Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.