Class NestedHelper


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

      • NestedHelper

        public NestedHelper​(MapperService mapperService)
    • Method Detail

      • mightMatchNestedDocs

        public boolean mightMatchNestedDocs​(Query query)
        Returns true if the given query might match nested documents.
      • mightMatchNonNestedDocs

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