Answer the question
In order to leave comments, you need to log in
Why is the Elasticsearch index not populating with data?
The problem is as simple as it is absurd: I can't add data to the elasticsearch index. To add, use the following command:
curl -XPUT 'http://localhost:9200/bid_portal/auction/1?pretty' -d '{"test": 1}'
{
"_index" : "bid_portal",
"_type" : "auction",
"_id" : "1",
"_version" : 1,
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"created" : true
}
curl -XGET 'http://localhost:9200/bid_portal/auctions/_search?pretty' -d '{"query": {"match_all": {}}}'
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
Answer the question
In order to leave comments, you need to log in
The second query contains an extra letter s In the word auction!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question