X
X
xphoenyx2016-09-24 23:55:48
elasticsearch
xphoenyx, 2016-09-24 23:55:48

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}'

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

I query the 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?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-09-25
@xphoenyx

The second query contains an extra letter s In the word auction!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question