Interface ElasticsearchSearchRequestTransformerContext
The context passed to
ElasticsearchSearchRequestTransformer.transform(ElasticsearchSearchRequestTransformerContext)
.
WARNING: Direct changes to the request may conflict with Hibernate Search features
and be supported differently by different versions of Elasticsearch.
Thus they cannot be guaranteed to continue to work when upgrading Hibernate Search,
even for micro upgrades (x.y.z
to x.y.(z+1)
).
Use this at your own risk.
-
Method Summary
-
Method Details
-
path
String path()- Returns:
- The URL-encoded path of the HTTP request for this search.
-
path
Set a new path for the HTTP request for this search.- Parameters:
newPath
- A HTTP path, already URL-encoded. Should not include the query parameters (?foo=bar&...
): useparametersMap()
for that instead.
-
parametersMap
- Returns:
- A (mutable) representation of the HTTP query parameters for this search, as a
Map
. The query parameters are not URL-encoded.
-
body
com.google.gson.JsonObject body()- Returns:
- A (mutable) representation of the HTTP request body for this search, as a
JsonObject
.
-