Package org.elasticsearch.index.mapper
Interface NestedLookup
public interface NestedLookup
Holds information about nested mappings
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NestedLookup
A NestedLookup for a mapping with no nested mappers -
Method Summary
Modifier and TypeMethodDescriptionstatic NestedLookup
build
(List<NestedObjectMapper> mappers) Construct a NestedLookup from a list of NestedObjectMappersgetNestedParent
(String path) Given a nested object path, returns the path to its nested parent In particular, if a nested field `foo` contains an object field `bar.baz`, then calling this method with `foo.bar.baz` will return the path `foo`, skipping over the object-but-not-nested `foo.bar`
-
Field Details
-
EMPTY
A NestedLookup for a mapping with no nested mappers
-
-
Method Details
-
getNestedMappers
Map<String,NestedObjectMapper> getNestedMappers()- Returns:
- a map of all nested object mappers in the current mapping
-
getNestedParentFilters
- Returns:
- filters for nested objects that contain further nested mappers
-
getNestedParent
Given a nested object path, returns the path to its nested parent In particular, if a nested field `foo` contains an object field `bar.baz`, then calling this method with `foo.bar.baz` will return the path `foo`, skipping over the object-but-not-nested `foo.bar`- Parameters:
path
- the path to resolve
-
build
Construct a NestedLookup from a list of NestedObjectMappers- Parameters:
mappers
- the nested mappers to build a lookup over
-