Class LuceneQueryParsingResult<TypeMetadata>


  • public final class LuceneQueryParsingResult<TypeMetadata>
    extends Object
    Since:
    9.0
    Author:
    anistor@redhat.com
    • Method Detail

      • getQuery

        public org.apache.lucene.search.Query getQuery()
        Returns the created Lucene query.
      • getTargetEntityName

        public String getTargetEntityName()
        Returns the original entity name from the query.
      • getTargetEntityMetadata

        public TypeMetadata getTargetEntityMetadata()
        Returns the entity metadata (usually a Class) resolved from the original entity name.
      • getProjections

        public String[] getProjections()
        Returns the projections of the parsed query, represented as dot-separated paths to fields of embedded entities.
        Returns:
        an array with the projections of the parsed query or null if the query has no projections
      • getSort

        public org.apache.lucene.search.Sort getSort()
        Returns the optional Lucene sort specification.
        Returns:
        the Sort object or null if the query string does not specify sorting