Package org.hibernate.search.engine
Interface ProjectionConstants
-
- All Known Subinterfaces:
HSQuery
@Deprecated public interface ProjectionConstants
Deprecated.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.Defined projection constants.Implementator's note: When adding new constants, be sure to add them to
LuceneHSQuery#SUPPORTED_PROJECTION_CONSTANTS, too.- Author:
- Emmanuel Bernard
-
-
Field Summary
Fields Modifier and Type Field Description static StringDOCUMENTDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static StringEXPLANATIONDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static StringIDDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static StringOBJECT_CLASSDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static StringSCOREDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static StringSPATIAL_DISTANCEDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static StringTHISDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.
-
-
-
Field Detail
-
THIS
@Deprecated static final String THIS
Deprecated.See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.entity().Represents the Hibernate entity returned in a search.- See Also:
- Constant Field Values
-
DOCUMENT
@Deprecated static final String DOCUMENT
Deprecated.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.The Lucene document returned by a search.- See Also:
- Constant Field Values
-
SCORE
@Deprecated static final String SCORE
Deprecated.See the javadoc of this class for how to create projections in Hibernate Search 6. The equivalent projection in Hibernate Search 6 isSearchProjectionFactory.score().The legacy document's score from a search.- See Also:
- Constant Field Values
-
ID
@Deprecated static final String ID
Deprecated.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.Object id property- See Also:
- Constant Field Values
-
EXPLANATION
@Deprecated static final String EXPLANATION
Deprecated.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.LuceneExplanationobject describing the score computation for the matching object/document This feature is relatively expensive, do not use unless you return a limited amount of objects (using pagination) To retrieve explanation of a single result, consider retrievingthe entity idand using fullTextQuery.explain(Object)- See Also:
- Constant Field Values
-
OBJECT_CLASS
@Deprecated static final String OBJECT_CLASS
Deprecated.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.Represents the Hibernate entity class returned in a search. In contrast to the other constants this constant represents an actual field value of the underlying Lucene document and hence can directly be used in queries.- See Also:
- Constant Field Values
-
SPATIAL_DISTANCE
@Deprecated static final String SPATIAL_DISTANCE
Deprecated.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).Represents the distance (in kilometers) between an entity and the center of the search area in case of a spatial query.- See Also:
- Constant Field Values
-
-