[[requests]]
==== Requests

Requests are modeled around structures that follows as closely as possible the {es} API and uses the standard `json/encoding` for serialization.
Corresponding request can be found withing the same package as its endpoint and comes with a Builder that allows you to deep dive into the API by following the types.

[source,go]
------------------------------------
types.Query{
    Term: map[string]types.TermQuery{
        "name": {Value: "Foo"},
    },
}
------------------------------------