Class ElasticsearchExtension<H,R,E,LOS>
java.lang.Object
org.hibernate.search.backend.elasticsearch.ElasticsearchExtension<H,R,E,LOS>
- Type Parameters:
H- The type of query hits. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get().R- The entity reference type for projections. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get().E- The entity type for projections. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get().LOS- The type of the initial step of the loading options definition DSL. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get().
- All Implemented Interfaces:
org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactoryExtension<ElasticsearchIndexFieldTypeFactory>,org.hibernate.search.engine.common.schema.management.SchemaExportExtension<ElasticsearchIndexSchemaExport>,org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactoryExtension<ElasticsearchSearchAggregationFactory>,org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactoryExtension<ElasticsearchSearchPredicateFactory>,org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactoryExtension<ElasticsearchSearchProjectionFactory<R,,E>, R, E> org.hibernate.search.engine.search.query.dsl.SearchQueryDslExtension<ElasticsearchSearchQuerySelectStep<R,,E, LOS>, R, E, LOS> org.hibernate.search.engine.search.query.SearchQueryExtension<ElasticsearchSearchQuery<H>,,H> org.hibernate.search.engine.search.sort.dsl.SearchSortFactoryExtension<ElasticsearchSearchSortFactory>
public final class ElasticsearchExtension<H,R,E,LOS>
extends Object
implements org.hibernate.search.engine.search.query.dsl.SearchQueryDslExtension<ElasticsearchSearchQuerySelectStep<R,E,LOS>,R,E,LOS>, org.hibernate.search.engine.search.query.SearchQueryExtension<ElasticsearchSearchQuery<H>,H>, org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactoryExtension<ElasticsearchSearchPredicateFactory>, org.hibernate.search.engine.search.sort.dsl.SearchSortFactoryExtension<ElasticsearchSearchSortFactory>, org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactoryExtension<ElasticsearchSearchProjectionFactory<R,E>,R,E>, org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactoryExtension<ElasticsearchSearchAggregationFactory>, org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactoryExtension<ElasticsearchIndexFieldTypeFactory>, org.hibernate.search.engine.common.schema.management.SchemaExportExtension<ElasticsearchIndexSchemaExport>
An extension for the Elasticsearch backend, giving access to Elasticsearch-specific features.
WARNING: while this type is API, because instances should be manipulated by users, all of its methods are considered SPIs and therefore should never be called directly by users. In short, users are only expected to get instances of this type from an API and pass it to another API.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionextendOptional(org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory original) extendOptional(org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory original) extendOptional(org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactory<R, E> original) extendOptional(org.hibernate.search.engine.search.query.dsl.SearchQuerySelectStep<?, R, E, LOS, ?, ?> original, org.hibernate.search.engine.search.query.spi.SearchQueryIndexScope<?> scope, org.hibernate.search.engine.backend.session.spi.BackendSessionContext sessionContext, org.hibernate.search.engine.search.loading.spi.SearchLoadingContextBuilder<E, LOS> loadingContextBuilder) extendOptional(org.hibernate.search.engine.search.query.SearchQuery<H> original, org.hibernate.search.engine.search.loading.spi.SearchLoadingContext<?> loadingContext) extendOptional(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory original) extendOrFail(org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactory original) extendOrFail(org.hibernate.search.engine.common.schema.management.SchemaExport original) static <H,R, E, LOS>
ElasticsearchExtension<H, R, E, LOS> get()Get the extension with generic parameters automatically set as appropriate for the context in which it's used.
-
Method Details
-
get
Get the extension with generic parameters automatically set as appropriate for the context in which it's used.- Type Parameters:
H- The type of query hits. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get() ).R- The entity reference type for projections. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get() ).E- The entity type for projections. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get() ).LOS- The type of the initial step of the loading options definition DSL. Users should not have to care about this, as the parameter will automatically take the appropriate value when calling.extension( ElasticsearchExtension.get() ).- Returns:
- The extension.
-
extendOptional
public Optional<ElasticsearchSearchQuerySelectStep<R,E, extendOptionalLOS>> (org.hibernate.search.engine.search.query.dsl.SearchQuerySelectStep<?, R, E, LOS, ?, ?> original, org.hibernate.search.engine.search.query.spi.SearchQueryIndexScope<?> scope, org.hibernate.search.engine.backend.session.spi.BackendSessionContext sessionContext, org.hibernate.search.engine.search.loading.spi.SearchLoadingContextBuilder<E, LOS> loadingContextBuilder) -
extendOptional
public Optional<ElasticsearchSearchQuery<H>> extendOptional(org.hibernate.search.engine.search.query.SearchQuery<H> original, org.hibernate.search.engine.search.loading.spi.SearchLoadingContext<?> loadingContext) -
extendOptional
public Optional<ElasticsearchSearchPredicateFactory> extendOptional(org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory original) - Specified by:
extendOptionalin interfaceorg.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactoryExtension<H>
-
extendOptional
public Optional<ElasticsearchSearchSortFactory> extendOptional(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory original) - Specified by:
extendOptionalin interfaceorg.hibernate.search.engine.search.sort.dsl.SearchSortFactoryExtension<H>
-
extendOptional
-
extendOptional
public Optional<ElasticsearchSearchAggregationFactory> extendOptional(org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory original) - Specified by:
extendOptionalin interfaceorg.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactoryExtension<H>
-
extendOrFail
public ElasticsearchIndexFieldTypeFactory extendOrFail(org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactory original) - Specified by:
extendOrFailin interfaceorg.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactoryExtension<H>
-
extendOrFail
public ElasticsearchIndexSchemaExport extendOrFail(org.hibernate.search.engine.common.schema.management.SchemaExport original) - Specified by:
extendOrFailin interfaceorg.hibernate.search.engine.common.schema.management.SchemaExportExtension<H>
-