elasticsearch dsl query code example
Example 1: what is query dsl in aws elasticsearch
{ "range" : { "age" : { "gt" : 30 } } }{ "range": { "born" : { "gte": "01/01/2012", "lte": "2013", "format": "dd/MM/yyyy||yyyy" } }}
Example 2: what is query dsl in aws elasticsearch
Elasticsearch Term Query : { "term": { "tag": "math" }}{ "terms": { "tag": ["math", "statistics"] }}
Example 3: what is query dsl in aws elasticsearch
{ "filtered": { "query": { "match": { "body": "Probability Theory" }}, "filter": { "bool": { "must": { "range": { "upvotes" : { "gt" : 20 } } }, "must_not": { "term": { "tag": "frequentist" } } } } }}
Example 4: what is query dsl in aws elasticsearch
{ "exists" : { "field" : "title" }}