Class NestedHelper


  • public final class NestedHelper
    extends java.lang.Object
    Utility class to filter parent and children clauses when building nested queries.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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, java.lang.String 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.Object

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

      • NestedHelper

        public NestedHelper​(MapperService mapperService)
    • Method Detail

      • 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,
                                               java.lang.String nestedPath)
        Returns true if the given query might match parent documents or documents that are nested under a different path.