Package org.hibernate.search.engine
Interface ProjectionConstants
- All Known Subinterfaces:
HSQuery
Deprecated.
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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.static final StringDeprecated.See the javadoc of this class for how to create projections in Hibernate Search 6.
-
Field Details
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
org.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.