-
Deprecated InterfacesInterfaceDescriptionInstead of using Hibernate Search 5 APIs, get a
org.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create a mass indexer withorg.hibernate.search.mapper.orm.session.SearchSession#massIndexer(Class[]), and implement the interfaceorg.hibernate.search.mapper.orm.massindexing.MassIndexingMonitorin your monitor. Refer to the migration guide for more information.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your projections usingSearchQuerySelectStep.select(Function). Refer to the migration guide for more information.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your facets (now called aggregations) usingSearchQueryOptionsStep.aggregation(AggregationKey, Function). You can then fetch the query result usingSearchFetchable.fetch(Integer)and get each aggregation usingSearchResult.aggregation(AggregationKey). Refer to the migration guide for more information.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your predicates usingSearchQueryWhereStep.where(Function). Refer to the migration guide for more information.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onSortContext.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your sorts usingSearchQueryOptionsStep.sort(Function). Refer to the migration guide for more information.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onSortContext.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.See the deprecation note onQueryBuilder.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your facets (now called aggregations) usingSearchQueryOptionsStep.aggregation(AggregationKey, Function). You can then fetch the query result usingSearchFetchable.fetch(Integer)and get each aggregation usingSearchResult.aggregation(AggregationKey). Refer to the migration guide for more information.This class will be removed without replacement. Use actual API instead.This class will be removed without replacement. Use actual API instead.This class will be removed without replacement. Use actual API instead.See the deprecation note onFacetContext.See the deprecation note onFacetContext.See the deprecation note onFacetContext.This class will be removed without replacement. Use actual API instead.UseGeoPointinstead. Refer to the migration guide for more information.This class will be removed without replacement. Use actual API instead.
-
Deprecated ClassesClassDescriptionWill be removed without replacement.Will be removed without replacement.
-
Deprecated EnumsEnumDescriptionNo longer necessary in Hibernate Search 6. Replace
FieldwithFullTextFieldto define a field with an analyzer, or any other field annotation (e.g.KeywordField,GenericField, ...) to define a field without an analyzer.Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable/disable indexing withinstead.@GenericField(searchable = Searchable.YES)Use Hibernate Search 6's text field annotations (KeywordField,FullTextField) and enable/disable norms withinstead.@FullTextField(norms = Norms.YES)DateBridge/CalendarBridgeare no longer available in Hibernate Search 6. See the javadoc ofDateBridgeorCalendarBridge.Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable/disable storage withinstead.@GenericField(projectable = Projectable.YES)Use Hibernate Search 6's full-text field annotation (FullTextField) and enable/disable term vectors withinstead.@FullTextField(termVector = TermVector.YES)This setting is ignored in Hibernate Search 6.See the deprecation note onQueryBuilder.See the deprecation note onFacetContext.Instead of using Hibernate Search 5 APIs, get aorg.hibernate.search.mapper.orm.session.SearchSessionusingorg.hibernate.search.mapper.orm.Search#session(org.hibernate.Session), create aSearchQuerywithorg.hibernate.search.mapper.orm.session.SearchSession#search(Class), and define your loading options usingSearchQueryOptionsStep.loading(Consumer). To set the equivalent toObjectLookupMethodin Hibernate Search 6, useorg.hibernate.search.mapper.orm.search.loading.dsl.SearchLoadingOptionsStep#cacheLookupStrategy(org.hibernate.search.mapper.orm.search.loading.EntityLoadingCacheLookupStrategy)Refer to the migration guide for more information.
-
Deprecated Annotation TypesAnnotation TypeDescriptionNo longer necessary in Hibernate Search 6. Replace
FieldwithFullTextFieldand pass the analyzer name directly toFullTextField.analyzer().DateBridge/CalendarBridgeare no longer available in Hibernate Search 6. If you cannot move your properties to Java 8 date/time types, implement your own bridge and apply it withGenericField.valueBridge(). If you can move your properties to Java 8 date/time types, do so, remove this annotation and replaceFieldwithGenericField. Then, either use a Java type with the appropriate resolution (LocalDate, ...) andmatchpredicates, or use a type with more resolution than necessary but rely on range predicates (e.g.f.range().field("myField").between(LocalDate.now().atStartOfDay(), LocalDate.now().plusDays(1).atStartOfDay())for a "day" resolution on aLocalDateTimefield).DateBridge/CalendarBridgeare no longer available in Hibernate Search 6. If you cannot move your properties to Java 8 date/time types, implement your own bridge and apply it withGenericField.valueBridge(). If you can move your properties to Java 8 date/time types, do so, remove this annotation and replaceFieldwithGenericField. Then, either use a Java type with the appropriate resolution (LocalDate, ...) andmatchpredicates, or use a type with more resolution than necessary but rely on range predicates (e.g.f.range().field("myField").between(LocalDate.now().atStartOfDay(), LocalDate.now().plusDays(1).atStartOfDay())for a "day" resolution on aLocalDateTimefield).Use Hibernate Search 6'sDocumentIdinstead.Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable faceting withinstead.@GenericField(aggregable = Aggregable.YES)See the deprecation note onFacet.Use Hibernate Search 6's field annotations instead:FullTextFieldfor text fields with an analyzer.KeywordFieldfor text fields with a normalizer.GenericFieldfor non-text fields.
Use Hibernate Search 6's field annotations instead:FullTextFieldfor text fields with an analyzer.KeywordFieldfor text fields with a normalizer.GenericFieldfor non-text fields.
Use Hibernate Search 6'sIndexedinstead.Use Hibernate Search 6'sIndexedEmbeddedinstead.Use Hibernate Search 6'sLatitudeinstead. See also the javadoc ofSpatial.Use Hibernate Search 6'sLongitudeinstead. See also the javadoc ofSpatial.No longer necessary in Hibernate Search 6. ReplaceFieldwithKeywordFieldand pass the normalizer name directly toKeywordField.normalizer().This annotation does not do anything anymore and is not necessary. It can be removed safely.This annotation does not do anything anymore and is not necessary. It can be removed safely.Use Hibernate Search 6's field annotations (GenericField,KeywordField, ...) and enable sorts withinstead. Note that@GenericField(sortable = Sortable.YES)FullTextFieldcannot be marked as sortable, but you can define aKeywordFieldalongside yourFullTextField, with a different name, and that field can be marked as sortable.See the deprecation note onSortableFieldIf the latitude/longitude of the element annotated withSpatialare mutable, annotate these properties annotated withLatitude/Longitude, and useGeoPointBindinginstead ofSpatial. If the latitude/longitude of the element annotated withSpatialare immutable, you can alternatively implementGeoPointinstead ofCoordinatesand simply useGenericFieldon properties of this type.See the deprecation note onSpatial.
-
Deprecated FieldsFieldDescriptionSee the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 is
LuceneSearchProjectionFactory.document(). You will need to passLuceneExtension.get()toSearchProjectionFactory.extension(SearchProjectionFactoryExtension)in order to get access to this Lucene-specific feature.See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isLuceneSearchProjectionFactory.explanation(). You will need to passLuceneExtension.get()toSearchProjectionFactory.extension(SearchProjectionFactoryExtension)in order to get access to this Lucene-specific feature.See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.entityReference(); call.id()on the reference to get the entity identifier.See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.entityReference(); call.type()on the reference to get the entity type.See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.score().See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.distance(String, GeoPoint).See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.entity().
-
Deprecated MethodsMethodDescriptionSee the deprecation note on
QueryBuilder. Also, analyzer overrides are done on a per-predicate basis in Hibernate Search 6. SeeMatchPredicateOptionsStep.analyzer(String),CommonQueryStringPredicateOptionsStep.analyzer(String), etc.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.matchAll().See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.bool().See the deprecation note onFacetContext.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.match(). For wildcard predicates, useSearchPredicateFactory.wildcard().See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.phrase().See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.range().See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.simpleQueryString().See the deprecation note onSortContext.See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.spatial().
MassIndexerProgressMonitor.