#基本结构
{
"query":{
"bool":{
"must":{
},
"must_not":{},
"filter":{},
"should":{},
"should_not":{}
}
}
}
#数组查询
{
"query":{
"nested":{
"path":"firm_app",
"query":{
"match":{
"firm_app.app":"noticias" }
}
}
}
}
对象查询
{
"query":{
"term":{
"language.v4.keyword": "Spanish"
}
}
}
存在field##### 亦可判断写入字段为空
{
"query":{
"exists": {
"field": "title"
}
}
}
过滤
{
"query":{
"range": {
"discovery_time": {
"gt": "2018-03-16",
"lt": "2018-03-23"
}
}
}
}