elasticsearch provides a full Query DSL based on JSON to define queries. In general, there are basic queries such as term or prefix