Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "size": 0,
- "query": {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "has_child": {
- "query": {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "GoogleSearch.keyword": {
- "query": "youtube",
- "slop": 0,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- "type": "action",
- "score_mode": "none",
- "min_children": 0,
- "max_children": 2147483647,
- "ignore_unmapped": false,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- "aggs": {
- "children": {
- "children": {
- "type": "action"
- },
- "aggs": {
- "matching_raws": {
- "filter": {
- "bool": {
- "filter": [
- {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "GoogleSearch.keyword": {
- "query": "youtube",
- "slop": 0,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ]
- }
- },
- "aggs": {
- "keywords": {
- "terms": {
- "field": "GoogleSearch.keyword.raw"
- },
- "aggs": {
- "tenActionsFiltering": {
- "bucket_selector": {
- "buckets_path": {
- "actionsCount": "_count"
- },
- "script": "params.actionsCount>10"
- }
- },
- "uuids_count": {
- "cardinality": {
- "field": "uuid",
- "precision_threshold": 3000
- }
- },
- "twoUUIDsFiltering": {
- "bucket_selector": {
- "buckets_path": {
- "uuidsCount": "uuids_count"
- },
- "script": "params.uuidsCount>2"
- }
- },
- "sort_by_doc_count": {
- "bucket_sort": {
- "sort": [
- {
- "_count": {
- "order": "desc"
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement