0

I am new to elastic search. I am using sense plugin. While i am trying to retrieve data from JSON file using command

POST/bank/accounts/_bulk?pretty @accounts.json

and the output in sense console is giving like:

Request failed to get to the server (status code: 0):

I want to know which command should I type in Sense to retrieve data from JSON file.

Abdulla Nilam
  • 36,589
  • 17
  • 64
  • 85
  • Can you give more information about the contents of you accounts.json file? – Heschoon Mar 23 '15 at 15:19
  • yeah it contains name,account number,address,balance,age,gender and email id and here i am giving you the link http://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html. thank you – Sharath Chandra Mar 24 '15 at 04:32

2 Answers2

0

I got the output.I have just copied the total content in the json file and paste it in sense editor n got the output Thank you

0

no need to paste the content to sense editor. just get postman from https://www.getpostman.com/docs/environments give it the file location with /bank/accounts/_bulk?pretty command. enter image description here

Piyush Mittal
  • 1,860
  • 1
  • 21
  • 39