Interface ElasticsearchSearchProjectionFactory<R,​E>

    • Method Detail

      • source

        ProjectionFinalStep<com.google.gson.JsonObject> source()
        Project to a JsonObject representing the document as stored in Elasticsearch.
        Returns:
        The final step of the projection DSL.
      • explanation

        ProjectionFinalStep<com.google.gson.JsonObject> explanation()
        Project to a JsonObject describing the score computation for the hit.

        This feature is relatively expensive, do not use unless you return a limited amount of hits (using pagination).

        Returns:
        The final step of the projection DSL.
      • jsonHit

        ProjectionFinalStep<com.google.gson.JsonObject> jsonHit()
        Project to a JsonObject representing the hit as returned by Elasticsearch.
        Returns:
        The final step of the projection DSL.