org.hibernate.search.engine.impl

## Class LuceneQueryDescriptor

- java.lang.Object
- - org.hibernate.search.engine.impl.LuceneQueryDescriptor

- All Implemented Interfaces:
    QueryDescriptor

      public class LuceneQueryDescriptor
      extends Object
      implements QueryDescriptor

  A `QueryDescriptor` for a Lucene query.
  Author:
    Gunnar Morling

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LuceneQueryDescriptor(Query luceneQuery)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `HSQuery` | `createHSQuery(SearchIntegrator integrator, IndexedTypeMap<CustomTypeMetadata> types)`
    `HSQuery` | `createHSQuery(SearchIntegrator integrator, IndexedTypeSet types)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LuceneQueryDescriptor

          public LuceneQueryDescriptor(Query luceneQuery)

  - ### Method Detail

    - #### createHSQuery

          public HSQuery createHSQuery(SearchIntegrator integrator,
                                       IndexedTypeSet types)

      Specified by:
        `createHSQuery` in interface `QueryDescriptor`
      Parameters:
        `integrator` - the `SearchIntegrator` used to execute the query
        `types` - the list of classes (indexes) targeted by the query
      Returns:
        the resulting query

    - #### createHSQuery

          public HSQuery createHSQuery(SearchIntegrator integrator,
                                       IndexedTypeMap<CustomTypeMetadata> types)

      Specified by:
        `createHSQuery` in interface `QueryDescriptor`
      Parameters:
        `integrator` - the `SearchIntegrator` used to execute the query
        `types` - the targeted types, mapped to (potentially null) custom metadata which should override the supporting entity type's metadata
      Returns:
        the resulting query

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved