Interface NestedLookup


public interface NestedLookup
Holds information about nested mappings
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NestedLookup
    A NestedLookup for a mapping with no nested mappers
  • Method Summary

    Modifier and Type
    Method
    Description
    Construct a NestedLookup from a list of NestedObjectMappers
     
    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`
    Map<String,org.apache.lucene.search.Query>
     
  • Field Details

    • EMPTY

      static final NestedLookup 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

      Map<String,org.apache.lucene.search.Query> getNestedParentFilters()
      Returns:
      filters for nested objects that contain further nested mappers
    • getNestedParent

      String getNestedParent(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`
      Parameters:
      path - the path to resolve
    • build

      static NestedLookup build(List<NestedObjectMapper> mappers)
      Construct a NestedLookup from a list of NestedObjectMappers
      Parameters:
      mappers - the nested mappers to build a lookup over