Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "size": 0,
- "query": {
- "bool": {
- "filter": {
- "bool": {
- "should": [
- {
- "bool": {
- "filter": [
- {
- "term": {
- "uuid": {
- "value": "009c423e4ee9385407a04ed3066e66fa",
- "boost": 1
- }
- }
- },
- {
- "has_child": {
- "query": {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "GoogleSearch.keyword": {
- "query": "youtube",
- "slop": 0,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- {
- "range": {
- "timestamp": {
- "from": 1509554616147,
- "to": null,
- "include_lower": true,
- "include_upper": 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
- }
- },
- "aggregations": {
- "ids": {
- "terms": {
- "field": "uuid",
- "size": 1,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "Gender": {
- "terms": {
- "field": "gender",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "Age": {
- "terms": {
- "field": "age_group",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "Country": {
- "terms": {
- "field": "country",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "Region": {
- "terms": {
- "field": "region",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "Device": {
- "terms": {
- "field": "platform",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "children": {
- "children": {
- "type": "action"
- },
- "aggregations": {
- "TopAmazonSearch": {
- "terms": {
- "field": "AmazonOnSiteSearch.keyword.raw",
- "size": 10,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "TopGoogleSearch": {
- "terms": {
- "field": "GoogleSearch.keyword.raw",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "TopLandingDomains": {
- "terms": {
- "field": "GoogleSearch.landing_domain",
- "size": 10,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "TopProductPages": {
- "terms": {
- "field": "AmazonProductPage.page_url.raw",
- "size": 10,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "google_b300852c_7b31_42bd_b989_7dbb0f7c3d84": {
- "filter": {
- "bool": {
- "filter": [
- {
- "term": {
- "uuid": {
- "value": "0000fbca0e32f72e76ca132e9b79da30",
- "boost": 1
- }
- }
- },
- {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "GoogleSearch.keyword": {
- "query": "youtube",
- "slop": 0,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- {
- "range": {
- "timestamp": {
- "from": 1509554616147,
- "to": null,
- "include_lower": true,
- "include_upper": true,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- "aggregations": {
- "actions": {
- "terms": {
- "field": "GoogleSearch.keyword.raw",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- },
- "aggregations": {
- "uniqueIds": {
- "cardinality": {
- "field": "join_field#uuid",
- "precision_threshold": 20000
- }
- }
- }
- },
- "landingPages": {
- "terms": {
- "field": "GoogleSearch.landing_domain",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- },
- "aggregations": {
- "counts": {
- "terms": {
- "field": "GoogleSearch.click_type",
- "size": 10,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "uniqueIds": {
- "cardinality": {
- "field": "join_field#uuid",
- "precision_threshold": 20000
- }
- }
- }
- }
- }
- },
- "google_2b246d84_2518_4002_b579_5339cfe4be00": {
- "filter": {
- "bool": {
- "filter": [
- {
- "term": {
- "uuid": {
- "value": "0000fbca0e32f72e76ca132e9b79da35",
- "boost": 1
- }
- }
- },
- {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "GoogleSearch.keyword": {
- "query": "youtube",
- "slop": 0,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- {
- "range": {
- "timestamp": {
- "from": 1509557283840,
- "to": null,
- "include_lower": true,
- "include_upper": true,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- "aggregations": {
- "actions": {
- "terms": {
- "field": "GoogleSearch.keyword.raw",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- },
- "aggregations": {
- "uniqueIds": {
- "cardinality": {
- "field": "join_field#uuid",
- "precision_threshold": 20000
- }
- }
- }
- },
- "landingPages": {
- "terms": {
- "field": "GoogleSearch.landing_domain",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- },
- "aggregations": {
- "counts": {
- "terms": {
- "field": "GoogleSearch.click_type",
- "size": 10,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "uniqueIds": {
- "cardinality": {
- "field": "join_field#uuid",
- "precision_threshold": 20000
- }
- }
- }
- }
- }
- },
- "amazon_7fbf2a38_6893_4eec_b10e_f06690910d67": {
- "filter": {
- "bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "AmazonOnSiteSearch.keyword": {
- "query": "printer",
- "slop": 0,
- "boost": 1
- }
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- }
- ],
- "adjust_pure_negative": true,
- "boost": 1
- }
- },
- "aggregations": {
- "actions": {
- "terms": {
- "field": "AmazonOnSiteSearch.keyword.raw",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- },
- "aggregations": {
- "uniqueIds": {
- "cardinality": {
- "field": "join_field#uuid",
- "precision_threshold": 20000
- }
- }
- }
- },
- "landingPages": {
- "terms": {
- "field": "GoogleSearch.landing_domain",
- "size": 1000,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- },
- "aggregations": {
- "counts": {
- "terms": {
- "field": "GoogleSearch.click_type",
- "size": 10,
- "min_doc_count": 1,
- "shard_min_doc_count": 0,
- "show_term_doc_count_error": false,
- "order": [
- {
- "_count": "desc"
- },
- {
- "_key": "asc"
- }
- ]
- }
- },
- "uniqueIds": {
- "cardinality": {
- "field": "join_field#uuid",
- "precision_threshold": 20000
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement