Briefly, this error occurs when Elasticsearch encounters a field in a query or document that it doesn’t recognize or support. This could be due to a typo in the field name, or the field might not exist in the index mapping. To resolve this issue, you can check the field name for typos, ensure the field exists in the index mapping, or update the index mapping to include the new field. If the field is not necessary, you can remove it from the query or document.
This guide will help you check for common problems that cause the log ” field [{}] not supported – must be one of: {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .
Log Context
Log “field [{}] not supported – must be one of: {}” class name is GenericPointParser.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :
case TYPE -> geojsonType = (String) fieldParser.parseField(subParser); case COORDINATES -> coordinates = ((DoubleArrayFieldParser) fieldParser).parseField(subParser); } } else { String fieldKeys = collectionToDelimitedString(fields.keySet(); "; "); throw new ElasticsearchParseException("field [{}] not supported - must be one of: {}"; field; fieldKeys); } } else { throw new ElasticsearchParseException("token [{}] not allowed"; subParser.currentToken()); } }