| 1234567891011121314151617181920212223242526 | [[query-dsl-wrapper-query]]=== Wrapper query++++<titleabbrev>Wrapper</titleabbrev>++++A query that accepts any other query as base64 encoded string.[source,console]--------------------------------------------------GET /_search{  "query": {    "wrapper": {      "query": "eyJ0ZXJtIiA6IHsgInVzZXIuaWQiIDogImtpbWNoeSIgfX0=" <1>    }  }}--------------------------------------------------<1> Base64 encoded string:  `{"term" : { "user.id" : "kimchy" }}`This query is more useful in the context of the Java high-level REST client ortransport client to also accept queries as json formatted string.In these cases queries can be specified as a json or yaml formatted string oras a query builder (which is a available in the Java high-level REST client).
 |