Class NestedHelper

org.elasticsearch.index.search.NestedHelper

public final class NestedHelper extends
Utility class to filter parent and children clauses when building nested queries.
  • Constructor Summary

    Constructors
    Constructor
    Description
    <,​ObjectMapper> objectMapperLookup, <> isMappedFieldPredicate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mightMatchNestedDocs​(org.apache.lucene.search.Query query)
    Returns true if the given query might match nested documents.
    boolean
    mightMatchNonNestedDocs​(org.apache.lucene.search.Query query,  nestedPath)
    Returns true if the given query might match parent documents or documents that are nested under a different path.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • NestedHelper

      public NestedHelper(<,​ObjectMapper> objectMapperLookup, <> isMappedFieldPredicate)
  • Method Details

    • mightMatchNestedDocs

      public boolean mightMatchNestedDocs(org.apache.lucene.search.Query query)
      Returns true if the given query might match nested documents.
    • mightMatchNonNestedDocs

      public boolean mightMatchNonNestedDocs(org.apache.lucene.search.Query query,  nestedPath)
      Returns true if the given query might match parent documents or documents that are nested under a different path.