Interface ElasticsearchSearchProjection<P>
-
- All Superinterfaces:
SearchProjection<P>
- All Known Implementing Classes:
AbstractElasticsearchProjection,ElasticsearchConstantProjection,ElasticsearchDistanceToFieldProjection,ElasticsearchEntityCompositeProjection,ElasticsearchEntityLoadingProjection,ElasticsearchEntityReferenceProjection,ElasticsearchFieldHighlightProjection,ElasticsearchFieldProjection,ElasticsearchIdProjection,ElasticsearchObjectProjection,ElasticsearchThrowingProjection
public interface ElasticsearchSearchProjection<P> extends SearchProjection<P>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceElasticsearchSearchProjection.Extractor<E,P>An object responsible for extracting data from the Elasticsearch response, to implement a projection.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <P> ElasticsearchSearchProjection<P>from(ElasticsearchSearchIndexScope<?> scope, SearchProjection<P> projection)Set<String>indexNames()ElasticsearchSearchProjection.Extractor<?,P>request(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.
-
-
-
Field Detail
-
log
static final Log log
-
-
Method Detail
-
request
ElasticsearchSearchProjection.Extractor<?,P> request(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.- 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.
-
from
static <P> ElasticsearchSearchProjection<P> from(ElasticsearchSearchIndexScope<?> scope, SearchProjection<P> projection)
-
-