非常消耗性能:
# 使用案例1:
{
"query":{
"wildcard":{
"communityName":"*测试*"
}
}
}
#使用案例2:
{
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"match_phrase": {
"pdf_title": "年度报告"
}
},
{
"range": {
"announce_date": {
"gte": "2017-01-01",
"lte": "2018-12-31"
}
}
}
],
"must_not": [
{
"wildcard": {
"communityName": "*测试*"
}
}
]
}
}
]
}
}
}