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:
IndexFieldTypeFactoryExtension<ElasticsearchIndexFieldTypeFactory>,SearchAggregationFactoryExtension<ElasticsearchSearchAggregationFactory>,SearchPredicateFactoryExtension<ElasticsearchSearchPredicateFactory>,SearchProjectionFactoryExtension<ElasticsearchSearchProjectionFactory<R,,E>, R, E> SearchQueryDslExtension<ElasticsearchSearchQuerySelectStep<R,,E, LOS>, R, E, LOS> SearchQueryExtension<ElasticsearchSearchQuery<H>,,H> SearchSortFactoryExtension<ElasticsearchSearchSortFactory>
public final class ElasticsearchExtension<H,R,E,LOS>
extends Object
implements SearchQueryDslExtension<ElasticsearchSearchQuerySelectStep<R,E,LOS>,R,E,LOS>, SearchQueryExtension<ElasticsearchSearchQuery<H>,H>, SearchPredicateFactoryExtension<ElasticsearchSearchPredicateFactory>, SearchSortFactoryExtension<ElasticsearchSearchSortFactory>, SearchProjectionFactoryExtension<ElasticsearchSearchProjectionFactory<R,E>,R,E>, SearchAggregationFactoryExtension<ElasticsearchSearchAggregationFactory>, IndexFieldTypeFactoryExtension<ElasticsearchIndexFieldTypeFactory>
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(SearchAggregationFactory original) extendOptional(SearchPredicateFactory original) extendOptional(SearchProjectionFactory<R, E> original) extendOptional(SearchQuerySelectStep<?, R, E, LOS, ?, ?> original, SearchQueryIndexScope<?> scope, BackendSessionContext sessionContext, SearchLoadingContextBuilder<R, E, LOS> loadingContextBuilder) extendOptional(SearchQuery<H> original, SearchLoadingContext<?, ?> loadingContext) extendOptional(SearchSortFactory original) extendOrFail(IndexFieldTypeFactory 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>> (SearchQuerySelectStep<?, R, E, LOS, ?, ?> original, SearchQueryIndexScope<?> scope, BackendSessionContext sessionContext, SearchLoadingContextBuilder<R, E, LOS> loadingContextBuilder) - Specified by:
extendOptionalin interfaceSearchQueryDslExtension<H,R, E, LOS>
-
extendOptional
public Optional<ElasticsearchSearchQuery<H>> extendOptional(SearchQuery<H> original, SearchLoadingContext<?, ?> loadingContext) - Specified by:
extendOptionalin interfaceSearchQueryExtension<H,R>
-
extendOptional
public Optional<ElasticsearchSearchPredicateFactory> extendOptional(SearchPredicateFactory original) - Specified by:
extendOptionalin interfaceSearchPredicateFactoryExtension<H>
-
extendOptional
- Specified by:
extendOptionalin interfaceSearchSortFactoryExtension<H>
-
extendOptional
public Optional<ElasticsearchSearchProjectionFactory<R,E>> extendOptional(SearchProjectionFactory<R, E> original) - Specified by:
extendOptionalin interfaceSearchProjectionFactoryExtension<H,R, E>
-
extendOptional
public Optional<ElasticsearchSearchAggregationFactory> extendOptional(SearchAggregationFactory original) - Specified by:
extendOptionalin interfaceSearchAggregationFactoryExtension<H>
-
extendOrFail
- Specified by:
extendOrFailin interfaceIndexFieldTypeFactoryExtension<H>
-