Class NestedDocuments

java.lang.Object
org.elasticsearch.search.NestedDocuments

public class NestedDocuments
extends java.lang.Object
Manages loading information about nested documents
  • Constructor Summary

    Constructors
    Constructor Description
    NestedDocuments​(MappingLookup mappingLookup, Version indexVersionCreated, java.util.function.Function<org.apache.lucene.search.Query,​org.apache.lucene.search.join.BitSetProducer> filterProducer)
    Create a new NestedDocuments object for an index
  • Method Summary

    Modifier and Type Method Description
    LeafNestedDocuments getLeafNestedDocuments​(org.apache.lucene.index.LeafReaderContext ctx)
    Returns a LeafNestedDocuments for an index segment
    boolean hasNonNestedParent​(java.lang.String path)
    Given an object path, returns whether or not any of its parents are plain objects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NestedDocuments

      public NestedDocuments​(MappingLookup mappingLookup, Version indexVersionCreated, java.util.function.Function<org.apache.lucene.search.Query,​org.apache.lucene.search.join.BitSetProducer> filterProducer)
      Create a new NestedDocuments object for an index
      Parameters:
      mappingLookup - the index's mapping
      filterProducer - a function to build BitSetProducers from filter queries
  • Method Details

    • getLeafNestedDocuments

      public LeafNestedDocuments getLeafNestedDocuments​(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
      Returns a LeafNestedDocuments for an index segment
      Throws:
      java.io.IOException
    • hasNonNestedParent

      public boolean hasNonNestedParent​(java.lang.String path)
      Given an object path, returns whether or not any of its parents are plain objects