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?