404 Response


(Harsh Katiyar) #1

If I run http://localhost:9200/

response :
{
"name" : "Harold H. Harold",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "VJw5noi8Qoq0Ahtfzjqx-w",
"version" : {
"number" : "2.4.6",
"build_hash" : "5376dca9f70f3abef96a77f4bb22720ace8240fd",
"build_timestamp" : "2017-07-18T12:17:44Z",
"build_snapshot" : false,
"lucene_version" : "5.5.4"
},
"tagline" : "You Know, for Search"
}

IF i run http://localhost:9200/khazairugs_com_default_catalog_product

Response :

{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"khazairugs_com_default_catalog_product","index":"khazairugs_com_default_catalog_product"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"khazairugs_com_default_catalog_product","index":"khazairugs_com_default_catalog_product"},"status":404}

i dont know why its giving 404 status

if i try to list the indices
with this curl -XGET http://localhost:9200/_cat/indices?v give response
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open khazairugs_com_default_thesaurus_20180605_092226 1 0 0 0 159b 159b


(David Pilato) #2

Because you don't have an index named khazairugs_com_default_catalog_product.

The index name is khazairugs_com_default_thesaurus_20180605_092226.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.