Please enable JavaScript.
Coggle requires JavaScript to display documents.
COMMON QUERIES (QUERY DSL (match (HTTP POST can be used for search, In…
COMMON QUERIES
QUERY DSL
2 TYPES
-
Leaf Q Clause
"match", "term", "range" which
look for a specific value in
a specific field
-
-
match
-
In fact, HTTP GET may not accept request body,
so the HTTP POST should be used instead
can be used in both query and filter context,
but OFTEN query context
-
-
term
used in searching exact value
such as number, boolean, or exact term string
for string, the value compared must be
non-analyzed string or a lower-case words
-
-
_search
support multi-type, multi-index search
-
Cluster API
GET /_cluster/health
-
3 levels: green, yellow, red
-
-
-
GET /_cluster/health/index1, index2
-
-
GET /_cluster/state
-
info. contains version, master node, other nodes, routing table, metadata and blocks
GET /_cluster/stats
-
returns shard number, store size, memory usage, number of nodes, roles, OS, and file system
_mget
specified by _index, _type, _id in a "docs" array
_bulk
create, delete multiple documents in a single request
-