The problem is as simple as it’s absurd: I cannot add data to the elasticsearch index. To add using the following command:

curl -XPUT 'http://localhost:9200/bid_portal/auction/1?pretty' -d '{"test": 1}' 

I get the result:

 { "_index" : "bid_portal", "_type" : "auction", "_id" : "1", "_version" : 1, "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "created" : true } 

I request an index for the presence of data in it with the following command:

 curl -XGET 'http://localhost:9200/bid_portal/auctions/_search?pretty' -d '{"query": {"match_all": {}}}' 

Result:

 { "took" : 4, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "failed" : 0 }, "hits" : { "total" : 0, "max_score" : null, "hits" : [ ] } } 

What am I doing wrong?

  • is the appropriate health for the yellow / green index? - etki
  • one
    in your request, you specify the auction s , while sending the entity to the auction without s - etki
  • Found a problem. I added a document to the action type, and requested documents from the action type S. Now everything is looking for. Thank you all, the question is closed. - xphoenyx
  • what I wrote about - etki

0