Unknown key for a VALUE_STRING in [Name]

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
}
  1. What does the exception mean?
  2. Why does it happen?
  3. How can I fix it?

can you provide a full reproduction in a gist, that includes the order all statements that you issued until this happens?

Thanks!

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