After successfully loading data into my Elasticsearch server (I use ElasticSearch 6.7.0
), this is the response I receive when I send a GET
request to the URL localhost:9200/bank/
:
> {
"bank": { "aliases": {}, "mappings": { "_doc": { "properties": { "account_number": { "type": "long" }, "address": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "age": { "type": "long" }, "balance": { "type": "long" }, "city": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "email": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "employer": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "firstname": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "gender": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "lastname": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "state": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } } }, "settings": { "index": { "creation_date": "1554368018382", "number_of_shards": "5", "number_of_replicas": "1", "uuid": "cPExmltDSqKci77ANCNR-g", "version": { "created": "6070099" }, "provided_name": "bank" } } }
}
However, when I send a GET
request to localhost:9200/bank/_search
, I get the following error message:
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "Unknown key for a VALUE_STRING in [Name].",
"line": 2,
"col": 10
}
],
"type": "parsing_exception",
"reason": "Unknown key for a VALUE_STRING in [Name].",
"line": 2,
"col": 10
},
"status": 400
}
- What does the exception mean?
- Why does it happen?
- How can I fix it?