Class ElasticsearchFieldHighlightProjection<T>
java.lang.Object
org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchFieldHighlightProjection<T>
- All Implemented Interfaces:
ElasticsearchSearchProjection<T>,SearchProjection<T>
public class ElasticsearchFieldHighlightProjection<T>
extends Object
implements ElasticsearchSearchProjection<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchSearchProjection
ElasticsearchSearchProjection.Extractor<E,P> -
Field Summary
Fields inherited from interface org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchSearchProjection
log -
Method Summary
Modifier and TypeMethodDescriptionrequest(com.google.gson.JsonObject requestBody, ProjectionRequestContext context) Contributes to the request, making sure that the requirements for this projection are met, and creating anElasticsearchSearchProjection.Extractorthat will be able to extract the result of the projection from the Elasticsearch response.toString()
-
Method Details
-
toString
-
indexNames
- Specified by:
indexNamesin interfaceElasticsearchSearchProjection<T>
-
request
public ElasticsearchSearchProjection.Extractor<?,T> request(com.google.gson.JsonObject requestBody, ProjectionRequestContext context) Description copied from interface:ElasticsearchSearchProjectionContributes to the request, making sure that the requirements for this projection are met, and creating anElasticsearchSearchProjection.Extractorthat will be able to extract the result of the projection from the Elasticsearch response.- Specified by:
requestin interfaceElasticsearchSearchProjection<T>- Parameters:
requestBody- The request body.context- An execution context for the request.- Returns:
- An
ElasticsearchSearchProjection.Extractor, to extract the result of the projection from the Elasticsearch response.
-