getting this error when i query in elasticsearch 5.2.0
failed to parse date field [afas] with format [strict_date_optional_time||epoch_millis]
Query-
{
"from": "0",
"size": "10",
"query": {
"bool": {
"filter": [
{
"bool": {
"must_not": [
{
"terms": {
"source": [
"report",
"dashboard",
"reportsheet",
"users"
]
}
},
{
"terms": {
"_type": [
"metadata"
]
}
}
]
}
}
],
"should": [
{
"multi_match": {
"query": "afas",
"type": "phrase",
"boost": 10,
"fields": [
"tag.*"
]
}
},
{
"multi_match": {
"query": "sdf",
"type": "phrase_prefix",
"fields": [
"tag.*"
]
}
}
],
"minimum_number_should_match": 1
}
},
"highlight": {
"fields": {
"tag.*": {},
"dimension_attribute.*": {}
}
}
mapping looks like-
{
"settings": {
"index.mapping.total_fields.limit": 2000,
"analysis": {
"analyzer": {
"analyzer_startswith": {
"type": "custom",
"tokenizer": "keyword",
"filter": [
"lowercase"
]
}
}
}
},
"mappings": {
"fact": {
"dynamic_templates": [
{
"double": {
"match_mapping_type": "double",
"mapping": {
"type": "string"
}
}
},
{
"long": {
"match_mapping_type": "long",
"mapping": {
"type": "string"
}
}
}
]
},
"dimension": {
"dynamic_templates": [
{
"double": {
"match_mapping_type": "double",
"mapping": {
"type": "string"
}
}
},
{
"long": {
"match_mapping_type": "long",
"mapping": {
"type": "string"
}
}
},
{
"tag_startswith": {
"match_mapping_type": "string",
"path_match": "tag.*",
"mapping": {
"type": "string"
}
}
},
{
"dimAttr_startswith": {
"match_mapping_type": "string",
"path_match": "dimension_attribute.*",
"mapping": {
"type": "string",
"analyzer": "analyzer_startswith"
}
}
}
]
}
}
}
Please help