aws elasticsearch query examples
Example 1: 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 2: what is query dsl in aws elasticsearch
{ "exists" : { "field" : "title" }}
Example 3: what is query dsl in aws elasticsearch
{ "multi_match": { "query": "probability theory", "fields": ["title", "body"] }}