Include in all in multi fields is not allowed Found the include in all in field – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-6.8

Briefly, this error occurs when the “include_in_all” option is used in multi-fields in Elasticsearch. This option is not allowed in multi-fields and its usage leads to this error. To resolve this issue, you can remove the “include_in_all” option from the multi-field definition. Alternatively, you can use the “copy_to” parameter to copy the values of multiple fields into a group field, which can then be searched as a single field. This can serve as a workaround for the “include_in_all” functionality.

This guide will help you check for common problems that cause the log ” include_in_all in multi fields is not allowed. Found the include_in_all in field [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index.

Log Context

Log “include_in_all in multi fields is not allowed. Found the include_in_all in field [” class name is TypeParsers.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 name; builder.fieldType.typeName());
 }
 iterator.remove();
 } else if (propName.equals("include_in_all")) {
 if (parserContext.isWithinMultiField()) {
 throw new MapperParsingException("include_in_all in multi fields is not allowed. Found the include_in_all in field ["
 + name + "] which is within a multi field.");
 } else if (parserContext.indexVersionCreated().onOrAfter(Version.V_6_0_0_alpha1)) {
 throw new MapperParsingException("[include_in_all] is not allowed for indices created on or after version 6.0.0 as " +
 "[_all] is deprecated. As a replacement; you can use an [copy_to] on mapping fields to create your " +
 "own catch all field.");

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.