Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface RootObjectMapperNamespaceValidator
- All Known Implementing Classes:
DefaultRootObjectMapperNamespaceValidator
public interface RootObjectMapperNamespaceValidator
SPI to inject additional rules around namespaces (top level fields) that are prohibited
in Elasticsearch mappings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateNamespace(ObjectMapper.Subobjects subobjects, String name) If the namespace in the mapper is not allowed, an Exception should be thrown.
-
Method Details
-
validateNamespace
If the namespace in the mapper is not allowed, an Exception should be thrown.- Parameters:
subobjects- Whether subobjects are enabled. Null is allowedname- namespace (field name) to validate
-