File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
server/src/main/java/org/elasticsearch/index/termvectors Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3535import org .elasticsearch .index .mapper .MappedFieldType ;
3636import org .elasticsearch .index .mapper .MapperService ;
3737import org .elasticsearch .index .mapper .MappingLookup ;
38+ import org .elasticsearch .index .mapper .NestedPathFieldMapper ;
3839import org .elasticsearch .index .mapper .ParsedDocument ;
3940import org .elasticsearch .index .mapper .SourceFieldMapper ;
4041import org .elasticsearch .index .mapper .SourceToParse ;
@@ -185,6 +186,11 @@ private static boolean isValidField(MappedFieldType fieldType) {
185186 if (fieldType .isIndexed () == false ) {
186187 return false ;
187188 }
189+ // and must not be the nested path field
190+ if (fieldType .name ().equals (NestedPathFieldMapper .NAME )) {
191+ return false ;
192+ }
193+
188194 return true ;
189195 }
190196
You can’t perform that action at this time.
0 commit comments