Interface ElasticsearchSearchProjection<P>
- All Superinterfaces:
SearchProjection<P>
- All Known Implementing Classes:
AbstractElasticsearchProjection,ElasticsearchConstantProjection,ElasticsearchDistanceToFieldProjection,ElasticsearchEntityCompositeProjection,ElasticsearchEntityLoadingProjection,ElasticsearchEntityReferenceProjection,ElasticsearchFieldHighlightProjection,ElasticsearchFieldProjection,ElasticsearchIdProjection,ElasticsearchObjectProjection,ElasticsearchThrowingProjection
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn object responsible for extracting data from the Elasticsearch response, to implement a projection. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <P> ElasticsearchSearchProjection<P>from(ElasticsearchSearchIndexScope<?> scope, SearchProjection<P> projection) 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 Details
-
log
-
-
Method Details
-
indexNames
-
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)
-