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 Details

    • get

      public 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.
      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,LOS>> 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)
      Specified by:
      extendOptional in interface org.hibernate.search.engine.search.query.dsl.SearchQueryDslExtension<H,R,E,LOS>
    • extendOptional

      public Optional<ElasticsearchSearchQuery<H>> extendOptional(org.hibernate.search.engine.search.query.SearchQuery<H> original, org.hibernate.search.engine.search.loading.spi.SearchLoadingContext<?> loadingContext)
      Specified by:
      extendOptional in interface org.hibernate.search.engine.search.query.SearchQueryExtension<H,R>
    • extendOptional

      public Optional<ElasticsearchSearchPredicateFactory> extendOptional(org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory original)
      Specified by:
      extendOptional in interface org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactoryExtension<H>
    • extendOptional

      public Optional<ElasticsearchSearchSortFactory> extendOptional(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory original)
      Specified by:
      extendOptional in interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactoryExtension<H>
    • extendOptional

      public Optional<ElasticsearchSearchProjectionFactory<R,E>> extendOptional(org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactory<R,E> original)
      Specified by:
      extendOptional in interface org.hibernate.search.engine.search.projection.dsl.SearchProjectionFactoryExtension<H,R,E>
    • extendOptional

      public Optional<ElasticsearchSearchAggregationFactory> extendOptional(org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory original)
      Specified by:
      extendOptional in interface org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactoryExtension<H>
    • extendOrFail

      public ElasticsearchIndexFieldTypeFactory extendOrFail(org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactory original)
      Specified by:
      extendOrFail in interface org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactoryExtension<H>
    • extendOrFail

      public ElasticsearchIndexSchemaExport extendOrFail(org.hibernate.search.engine.common.schema.management.SchemaExport original)
      Specified by:
      extendOrFail in interface org.hibernate.search.engine.common.schema.management.SchemaExportExtension<H>