Class ElasticsearchFieldProjection<F,​V,​P>

  • Type Parameters:
    F - The type of individual field values obtained from the backend (before conversion).
    V - The type of individual field values after conversion.
    P - The type of the final projection result representing accumulated values of type V.
    All Implemented Interfaces:
    ElasticsearchSearchProjection<P>, SearchProjection<P>

    public class ElasticsearchFieldProjection<F,​V,​P>
    extends AbstractElasticsearchProjection<P>
    A projection on the values of an index field.
    • Method Detail

      • request

        public org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchFieldProjection.ValueFieldExtractor<?> request​(com.google.gson.JsonObject requestBody,
                                                                                                                                             ProjectionRequestContext context)
        Description copied from interface: ElasticsearchSearchProjection
        Contributes to the request, making sure that the requirements for this projection are met, and creating an ElasticsearchSearchProjection.Extractor that 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.