-
Classes Class Description org.hibernate.search.util.AnalyzerUtils Will be removed without replacement.org.hibernate.search.util.StringHelper Will be removed without replacement.
-
Enums Enum Description org.hibernate.search.annotations.Analyze No longer necessary in Hibernate Search 6. ReplaceFieldwithFullTextFieldto define a field with an analyzer, or any other field annotation (e.g.KeywordField,GenericField, ...) to define a field without an analyzer.org.hibernate.search.annotations.Index Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable/disable indexing withinstead.@GenericField(searchable = Searchable.YES)org.hibernate.search.annotations.Norms Use Hibernate Search 6's text field annotations (KeywordField,FullTextField) and enable/disable norms withinstead.@FullTextField(norms = Norms.YES)org.hibernate.search.annotations.Resolution DateBridge/CalendarBridgeare no longer available in Hibernate Search 6. See the javadoc ofDateBridgeorCalendarBridge.org.hibernate.search.annotations.Store Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable/disable storage withinstead.@GenericField(projectable = Projectable.YES)org.hibernate.search.annotations.TermVector Use Hibernate Search 6's full-text field annotation (FullTextField) and enable/disable term vectors withinstead.@FullTextField(termVector = TermVector.YES)org.hibernate.search.query.DatabaseRetrievalMethod This setting is ignored in Hibernate Search 6.org.hibernate.search.query.dsl.Unit See the deprecation note onQueryBuilder.org.hibernate.search.query.facet.FacetSortOrder See the deprecation note onFacetContext.org.hibernate.search.query.ObjectLookupMethod 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.
-
Annotation Types Annotation Type Description org.hibernate.search.annotations.Analyzer No longer necessary in Hibernate Search 6. ReplaceFieldwithFullTextFieldand pass the analyzer name directly toFullTextField.analyzer().org.hibernate.search.annotations.CalendarBridge 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).org.hibernate.search.annotations.DateBridge 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).org.hibernate.search.annotations.DocumentId Use Hibernate Search 6'sDocumentIdinstead.org.hibernate.search.annotations.Facet Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable faceting withinstead.@GenericField(aggregable = Aggregable.YES)org.hibernate.search.annotations.Facets See the deprecation note onFacet.org.hibernate.search.annotations.Field Use Hibernate Search 6's field annotations instead:FullTextFieldfor text fields with an analyzer.KeywordFieldfor text fields with a normalizer.GenericFieldfor non-text fields.
org.hibernate.search.annotations.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.
org.hibernate.search.annotations.Indexed Use Hibernate Search 6'sIndexedinstead.org.hibernate.search.annotations.IndexedEmbedded Use Hibernate Search 6'sIndexedEmbeddedinstead.org.hibernate.search.annotations.Latitude org.hibernate.search.annotations.Longitude org.hibernate.search.annotations.Normalizer No longer necessary in Hibernate Search 6. ReplaceFieldwithKeywordFieldand pass the normalizer name directly toKeywordField.normalizer().org.hibernate.search.annotations.NumericField This annotation does not do anything anymore and is not necessary. It can be removed safely.org.hibernate.search.annotations.NumericFields This annotation does not do anything anymore and is not necessary. It can be removed safely.org.hibernate.search.annotations.SortableField 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.org.hibernate.search.annotations.SortableFields See the deprecation note onSortableFieldorg.hibernate.search.annotations.Spatial If 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.org.hibernate.search.annotations.Spatials See the deprecation note onSpatial.
-
Fields Field Description org.hibernate.search.engine.ProjectionConstants.DOCUMENT See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isLuceneSearchProjectionFactory.document(). You will need to passLuceneExtension.get()toSearchProjectionFactory.extension(SearchProjectionFactoryExtension)in order to get access to this Lucene-specific feature.org.hibernate.search.engine.ProjectionConstants.EXPLANATION 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.org.hibernate.search.engine.ProjectionConstants.ID 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.org.hibernate.search.engine.ProjectionConstants.OBJECT_CLASS 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.org.hibernate.search.engine.ProjectionConstants.SCORE See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.score().org.hibernate.search.engine.ProjectionConstants.SPATIAL_DISTANCE 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).org.hibernate.search.engine.ProjectionConstants.THIS See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.entity().
-
Methods Method Description org.hibernate.search.query.dsl.EntityContext.overridesForField(String, String) See the deprecation note onQueryBuilder. Also, analyzer overrides are done on a per-predicate basis in Hibernate Search 6. SeeMatchPredicateOptionsStep.analyzer(String),SimpleQueryStringPredicateOptionsStep.analyzer(String), etc.org.hibernate.search.query.dsl.QueryBuilder.all() See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.matchAll().org.hibernate.search.query.dsl.QueryBuilder.bool() See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.bool().org.hibernate.search.query.dsl.QueryBuilder.facet() See the deprecation note onFacetContext.org.hibernate.search.query.dsl.QueryBuilder.keyword() 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().org.hibernate.search.query.dsl.QueryBuilder.phrase() See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.phrase().org.hibernate.search.query.dsl.QueryBuilder.range() See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.range().org.hibernate.search.query.dsl.QueryBuilder.simpleQueryString() See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.simpleQueryString().org.hibernate.search.query.dsl.QueryBuilder.sort() See the deprecation note onSortContext.org.hibernate.search.query.dsl.QueryBuilder.spatial() See the javadoc of this class for how to create predicates in Hibernate Search 6. The equivalent predicate in Hibernate Search 6 isSearchPredicateFactory.spatial().