Please wrap watch including field inside a watch field – How to solve this Elasticsearch exception

Opster Team

August-23,

Log Context

Log “please wrap watch including field [{}] inside a \”watch\”” field”” class name is RestExecuteWatchAction.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 currentFieldName);
 }
 }
 } else {
 if (RESERVED_FIELD_NAMES.contains(currentFieldName)) {
 throw new ElasticsearchParseException("please wrap watch including field [{}] inside a \"watch\"" field"";

 

 [ratemypost]