Elasticsearch Query DSL code example
Example 1: what is query dsl in aws elasticsearch
{ "multi_match": { "query": "probability theory", "fields": ["title", "body"] }}
Example 2: what is query dsl in aws elasticsearch
{ "missing" : { "field" : "title" }}
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" }}
Example 5: what is query dsl in aws elasticsearch
Elasticsearch Term Query : { "term": { "tag": "math" }}{ "terms": { "tag": ["math", "statistics"] }}
Example 6: what is query dsl in aws elasticsearch
{ "range" : { "age" : { "gt" : 30 } } }{ "range": { "born" : { "gte": "01/01/2012", "lte": "2013", "format": "dd/MM/yyyy||yyyy" } }}