I'm able to perform all crud operations but whenever I tried to retrieve information through Elasticsearch I'm unable to do so.
GET
http://localhost:8080/topics/
{
"id": "1",
"name": "Java",
"desc": "Java Language Course"
}
The result isnot being displayed
POST
http://localhost:9200/topics/_search
{
"took": 35,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits":
}
}
dadoonet
(David Pilato)
January 2, 2019, 1:50am
2
GET http://localhost:8080/topics/
Wrong port?
What's the result of:
GET http://localhost:9200/_search
GET http://localhost:9200/_cat/indices?v
the port 8080 is working fine. I have tried changing the port as well. Produced the same results.
GET http://localhost:9200/_search
Result:
{
"took": 35,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits":
}
}
GET http://localhost:9200/_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open topics Rno1Gz78QpChFuIsc0ciUg 5 1 0 0 1.2kb 1.2kb
dadoonet
(David Pilato)
January 2, 2019, 7:53am
4
Elasticsearch does not listen to 2 REST ports. I'm unsure what service is running under 8080.
According to your last post, you did not index any document in elasticsearch. That's why you have no result.
Do you by any chance have 2 different Elasticsearch nodes/clusters that listen to ports 8080 and 9200 respectively?
system
(system)
Closed
January 30, 2019, 7:55am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.