diff --git "a/\344\270\200\346\256\265tpl\346\250\241\346\235\277" "b/\344\270\200\346\256\265tpl\346\250\241\346\235\277" new file mode 100644 index 0000000000000000000000000000000000000000..5ceb9693f1aca56e7781cf40416afb9e3762ae2d --- /dev/null +++ "b/\344\270\200\346\256\265tpl\346\250\241\346\235\277" @@ -0,0 +1,19 @@ +{ + "size": 0, + "query" : { + "bool": { + "should" : [ + {"match_phrase" : { "title" : "{{key}}" }} + ], + "must" : [ + {"match_phrase" : { "content" : "{{key}}" }} + ] + } + }, + "highlight" : { "fields" : { "title" : {}, "content" : {} } }, + "aggs" : { + "by_province" : { + "terms" : { "field" : "geo.province.name" } + } + } +} \ No newline at end of file