Package org.hibernate.search.spi
Interface SearchIntegrator
Deprecated.
This class will be removed without replacement. Use actual API instead.
This contract gives access to lower level APIs of Hibernate Search for
frameworks integrating with it.
Frameworks should not expose this as public API though, but expose a simplified view; for
example the Hibernate Search ORM module expose the
org.hibernate.search.SearchFactory contract to
its clients.- Author:
- Emmanuel Bernard, Sanne Grinovero
-
Method Summary
Modifier and TypeMethodDescriptiondefault QueryContextBuilderDeprecated.default <LOS> HSQuerycreateHSQuery(Query fullTextQuery, V5MigrationSearchSession<LOS> session, Consumer<LOS> loadOptionsContributor, Class<?>... entityTypes) Deprecated.Return an Hibernate Search query object.Deprecated.
-
Method Details
-
scope
Deprecated. -
createHSQuery
default <LOS> HSQuery createHSQuery(Query fullTextQuery, V5MigrationSearchSession<LOS> session, Consumer<LOS> loadOptionsContributor, Class<?>... entityTypes) Deprecated.Return an Hibernate Search query object.This method DOES support non-Lucene backends (e.g. Elasticsearch).
The returned object uses fluent APIs to define additional query settings.
- Type Parameters:
LOS- The type of the initial step of the loading options definition DSL accessible throughSearchQueryOptionsStep.loading(Consumer).- Parameters:
fullTextQuery- the full-text engine querysession- the session (for entity loading)loadOptionsContributor- a contributor of loading options (for entity loading)entityTypes- the targeted entity types- Returns:
- an Hibernate Search query object
-
buildQueryBuilder
Deprecated.- Returns:
- return a query builder providing a fluent API to create Lucene queries
-