Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Enum Classes
- Fields
- Methods
- Enum Constants
- Annotation Interface Elements
-
Terminally Deprecated ElementsElementDescriptionUse client specific configurers instead. The setting itself is not deprecated, it just moved to the client-specific configuration.Use
ClientRest4ElasticsearchBackendClientSettings.CONNECTION_TIMEOUTinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.Defaults.CONNECTION_TIMEOUTinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.DISCOVERY_ENABLEDinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.DISCOVERY_REFRESH_INTERVALinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.org.hibernate.search.backend.elasticsearch.cfg.ElasticsearchBackendSettings.Defaults.MAX_CONNECTIONSUseClientRest4ElasticsearchBackendClientSettings.Defaults.MAX_CONNECTIONSinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.MAX_CONNECTIONS_PER_ROUTEinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.READ_TIMEOUTinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.DISCOVERY_ENABLEDinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.DISCOVERY_REFRESH_INTERVALinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.MAX_CONNECTIONSinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.MAX_CONNECTIONS_PER_ROUTEinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.MAX_KEEP_ALIVEinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.READ_TIMEOUTinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.REQUEST_TIMEOUTinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.Use the client specific configurers instead.Use theproperty sourceand inspect the corresponding properties (e.g.ElasticsearchBackendSettings.VERSION) instead.Use the client specific configurers instead.UseIndexFieldTraits.Aggregations.COUNTinstead.UseSearchAggregationFactory.count()withCountValuesAggregationOptionsStep.distinct()instead.This constant is deprecated and will be removed at the same time as theValueConvertenum is removed. Do not use this value explicitly.UseResultsCompositorinstead.UseSearchScope.massIndexer(Object)instead.UseSearchScope.workspace(Object)instead.UseHibernateOrmSessionContext.sessionContract()instead, and unwrap to the specific session type if needed.UseMassIndexingTypeGroupMonitor.indexingStarted(MassIndexingTypeGroupMonitorContext)and get the total count, if available, from theMassIndexingTypeGroupMonitorContext.totalCount(). Alternatively, use theMassIndexingMonitor.typeGroupMonitor(MassIndexingTypeGroupMonitorCreateContext)and obtain the count fromMassIndexingTypeGroupMonitorCreateContext.totalCount()if a count is needed before any indexing processes are started.UseSearchScope.massIndexer(Object)instead.UseSearchScope.workspace(Object)instead.UseSearchSession.tenantIdentifierValue()instead.UseSearchSessionBuilder.tenantId(Object)instead.With no alternative provided. This util was mostly intended for testing purposes. Create your own copy if you were relying on the functionality it provides.
-
Deprecated InterfacesInterfaceDescriptionImplement
ElasticsearchAwsCredentialsProviderinstead.Use the client specific configurers instead.Use the client specific configurers instead.UseTypedSearchPredicateFactory.nested(String)instead.UseTypedSearchPredicateFactory.nested(String)instead.UseTypedSearchPredicateFactory.nested(String)instead.UseProjectionCollectorinstead.UseResultsCompositorinstead.UseEntityReferenceinstead.ImplementEntityLoadingBinderand useEntityLoadingBindingContextinstead.ImplementEntityLoadingBinderinstead.
-
Deprecated ClassesClassDescriptionorg.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition.SingleValuedWith no alternative provided. This util was mostly intended for testing purposes. Create your own copy if you were relying on the functionality it provides.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescriptionUse client specific configurers instead. The setting itself is not deprecated, it just moved to the client-specific configuration.Use
ClientRest4ElasticsearchBackendClientSettings.CONNECTION_TIMEOUTinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.Defaults.CONNECTION_TIMEOUTinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.DISCOVERY_ENABLEDinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.DISCOVERY_REFRESH_INTERVALinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.org.hibernate.search.backend.elasticsearch.cfg.ElasticsearchBackendSettings.Defaults.MAX_CONNECTIONSUseClientRest4ElasticsearchBackendClientSettings.Defaults.MAX_CONNECTIONSinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.UseClientRest4ElasticsearchBackendClientSettings.Defaults.MAX_CONNECTIONS_PER_ROUTEinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.The default for this property is now dynamic and depends on the mapper. If the multi-tenancy is enabled in the mapper, the default isMultiTenancyStrategyName.DISCRIMINATOR. Otherwise, the default is stillMultiTenancyStrategyName.NONE.UseClientRest4ElasticsearchBackendClientSettings.Defaults.READ_TIMEOUTinstead. The default value itself is not deprecated, just the constant defining it moved to a different, client-specific class.The default for theElasticsearchBackendSettings.VERSION_CHECK_ENABLEDproperty is now dynamic and depends on the value of theElasticsearchBackendSettings.VERSIONproperty.UseClientRest4ElasticsearchBackendClientSettings.DISCOVERY_ENABLEDinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.DISCOVERY_REFRESH_INTERVALinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.MAX_CONNECTIONSinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.MAX_CONNECTIONS_PER_ROUTEinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.MAX_KEEP_ALIVEinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.READ_TIMEOUTinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.UseClientRest4ElasticsearchBackendClientSettings.REQUEST_TIMEOUTinstead. The setting itself is not deprecated, it just moved to the client-specific configuration.The default for theElasticsearchIndexSettings.SCHEMA_MANAGEMENT_MINIMAL_REQUIRED_STATUSproperty is now dynamic and depends on the targeted Elasticsearch distribution.The default for this property is now dynamic and depends on the mapper. If the multi-tenancy is enabled in the mapper, the default isMultiTenancyStrategyName.DISCRIMINATOR. Otherwise, the default is stillMultiTenancyStrategyName.NONE.UseIndexFieldTraits.Aggregations.COUNTinstead.
-
Deprecated MethodsMethodDescriptionUse the
property sourceand inspect the corresponding properties (e.g.ElasticsearchBackendSettings.VERSION) instead.UseElasticsearchVersion.majorOptional()instead.UseKeyContext.asIntegerPositiveOrZeroOrNegative()instead.UseKeyContext.asLongPositiveOrZeroOrNegative()instead.UseSearchAggregationFactory.count()withCountValuesAggregationOptionsStep.distinct()instead.UsePredicateDefinitionContext.params()instead.UsePredicateDefinitionContext.params()instead.UsePredicateDefinitionContext.params()instead.UsePredicateDefinitionContext.params()instead.UseRangePredicateMatchingStep.within(Range)instead.UseRangePredicateMatchingStep.within(Range, ValueModel)instead.Use.bool().with(...)instead.UseSearchPredicateFactory.nested(String)instead.UseTypedSearchPredicateFactory.nested(String)instead.Use theHighlightProjectionOptionsStep.collector(ProjectionCollector.Provider)instead, e.g..collector(ProjectionCollector.single())Use.composite().from( dslFinalStep1, dslFinalStep2 ).as( transformer )instead.Use.composite().from( projection1, projection2 ).as( transformer )instead.Use.composite().from( dslFinalSteps ).asList( transformer )instead.Use.composite().from( projections ).asList( transformer )instead.Use.composite().from( dslFinalStep ).as( transformer )instead.Use.composite().from( projection ).as( transformer )instead.Use.composite().from( dslFinalStep1, dslFinalStep2, dslFinalStep3 ).as( transformer )instead.Use.composite().from( projection1, projection2, projection3 ).as( transformer )instead.UseSearchProjectionFactory.field(String, ValueModel)instead.UseSearchScope.massIndexer(Object)instead.UseSearchScope.workspace(Object)instead.UseHibernateOrmSessionContext.sessionContract()instead, and unwrap to the specific session type if needed.UseBindingContext.params()instead.UseBindingContext.params()instead.UseBindingContext.params()instead.UseBindingContext.params()instead.UseFieldProjection.valueModel()instead. Note, settingFieldProjection.convert()to non-defaultValueConvert.NOwill result in an exception at runtime, useFieldProjection.valueModel()withValueModel.INDEXinstead.Setting
FieldProjection.valueModel()to any non-default value will take precedence overFieldProjection.convert()defaultValueConvert.YESvalue.UseIndexedEmbedded.name()instead. Note thatIndexedEmbedded.name()does not allow dots.Pass a field name toPropertyMappingStep.indexedEmbedded(String)instead. Note that the name passed to that method does not allow dots.UseAnnotationMappingConfigurationContext.discoverAnnotationsFromReferencedTypes(boolean)on the object returned byAbstractPojoMappingInitiator.annotationMapping()instead.UsePojoMappingDelegate.createPojoScopeForClasses(PojoScopeMappingContext, Class, Collection, PojoScopeTypeExtendedContextProvider)orPojoMappingDelegate.createPojoScopeForEntityNames(PojoScopeMappingContext, Class, Class, Collection, PojoScopeTypeExtendedContextProvider)orPojoMappingDelegate.createPojoAllScope(PojoScopeMappingContext, Class, PojoScopeTypeExtendedContextProvider)instead.UseMassIndexingTypeGroupMonitor.indexingStarted(MassIndexingTypeGroupMonitorContext)and get the total count, if available, from theMassIndexingTypeGroupMonitorContext.totalCount(). Alternatively, use theMassIndexingMonitor.typeGroupMonitor(MassIndexingTypeGroupMonitorCreateContext)and obtain the count fromMassIndexingTypeGroupMonitorCreateContext.totalCount()if a count is needed before any indexing processes are started.UseFieldProjectionBinder.valueModel(ValueModel)instead.UseProjectionBindingContext.containerElement()and various bind methods of this context instead.UseProjectionBindingContext.param(String, Class)instead.UseSearchEntityorprogrammaticMapping().type( type ).searchEntity()instead.UseSearchEntityorprogrammaticMapping().type( type ).searchEntity().name( entityName )instead.UseSearchEntityorprogrammaticMapping().type( type ).searchEntity().name( entityName ).loadingBinder( binder )instead.UseSearchEntityorprogrammaticMapping().type( type ).searchEntity().loadingBinder( binder )instead.UseSearchEntityorprogrammaticMapping().type( type ).searchEntity()for each type instead.UseSearchEntityorprogrammaticMapping().type( type ).searchEntity()for each type instead.UseSearchScope.massIndexer(Object)instead.UseSearchScope.workspace(Object)instead.UseSearchSession.tenantIdentifierValue()instead.UseSearchSessionBuilder.tenantId(Object)instead.UsetypeIfIncludedOrNull(typeIdentifier)instead, then (if non-null).add(...)on the result.UsetypeIfIncludedOrNull(typeIdentifier)instead, then (if non-null).addOrUpdate(...)on the result.UsetypeIfIncludedOrNull(typeIdentifier)instead, then (if non-null).addOrUpdateOrDelete(...)on the result.UsetypeIfIncludedOrNull(typeIdentifier)instead, then (if non-null).delete(...)on the result.UsetypeIfIncludedOrNull(typeIdentifier)instead, then (if non-null).updateAssociationInverseSide(...)on the result.
-
Deprecated Enum ConstantsEnum ConstantDescriptionUse
ValueModel.INDEXinstead.UseValueModel.MAPPINGinstead.This constant is deprecated and will be removed at the same time as theValueConvertenum is removed. Do not use this value explicitly.
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionUse
FieldProjection.valueModel()instead. Note, settingFieldProjection.convert()to non-defaultValueConvert.NOwill result in an exception at runtime, useFieldProjection.valueModel()withValueModel.INDEXinstead.Setting
FieldProjection.valueModel()to any non-default value will take precedence overFieldProjection.convert()defaultValueConvert.YESvalue.UseIndexedEmbedded.name()instead. Note thatIndexedEmbedded.name()does not allow dots.