Created
February 9, 2017 21:13
-
-
Save milad621/ec8272644c1ca6905240c9e66fe85cb4 to your computer and use it in GitHub Desktop.
Same filter for all aggregations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "from": 0, | |
| "size": 600, | |
| "timeout": 1000, | |
| "query": { | |
| "filtered": { | |
| "query": { | |
| "bool": { | |
| "must": { | |
| "dis_max": { | |
| "queries": [ | |
| { | |
| "function_score": { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band16", | |
| "band_priority": 160000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band15", | |
| "band_priority": 150000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "multi_match": { | |
| "query": "iphone charger case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band14", | |
| "band_priority": 140000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band13", | |
| "band_priority": 130000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band12", | |
| "band_priority": 120000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band11", | |
| "band_priority": 110000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat.seoName": "cell-phones-and-accessories" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band10", | |
| "band_priority": 100000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| }, | |
| { | |
| "function_score": { | |
| "query": { | |
| "multi_match": { | |
| "query": "iphone charger case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| "functions": [ | |
| { | |
| "script_score": { | |
| "script": "darwin.scoring.plugin.bands.capture", | |
| "lang": "native", | |
| "params": { | |
| "band_name": "band9", | |
| "band_priority": 90000000, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "boost_mode": "replace" | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "filter": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "term": { | |
| "dealTargeting.channel.channelPermalink": "goods" | |
| } | |
| }, | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "nested": { | |
| "filter": { | |
| "and": { | |
| "filters": [ | |
| { | |
| "terms": { | |
| "locations.zipCode": [ | |
| "32714" | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "locations.countryCode": "US" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "path": "locations" | |
| } | |
| }, | |
| { | |
| "term": { | |
| "divisions.permalink": "orlando" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "status": "launched" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "filter": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "term": { | |
| "distributionWindows.type": "PREFEATURE" | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.type": "FEATURED" | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.type": "EXTENDED" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.availableAt": { | |
| "from": null, | |
| "to": 1478634600000, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.availableUntil": { | |
| "from": 1478634300000, | |
| "to": null, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| }, | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "nested": { | |
| "filter": { | |
| "and": { | |
| "filters": [ | |
| { | |
| "term": { | |
| "distributionWindows.constraints.type": "ALLOWED" | |
| } | |
| }, | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "f81ab6bd-93e5-431f-b08c-456c5ff5bfa7" | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "691215de-8fde-400d-ba8f-946684a75062" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "b2f7159e-0755-4ade-96be-a8d3767c3e49" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "2f74e683-52a7-484a-97a1-c32f74deb74d" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.constraints.enforcedAt": { | |
| "from": null, | |
| "to": 1478634600000, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.constraints.enforcedUntil": { | |
| "from": 1478634300000, | |
| "to": null, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "path": "distributionWindows.constraints" | |
| } | |
| }, | |
| { | |
| "not": { | |
| "filter": { | |
| "nested": { | |
| "filter": { | |
| "and": { | |
| "filters": [ | |
| { | |
| "term": { | |
| "distributionWindows.constraints.type": "ALLOWED" | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.constraints.enforcedAt": { | |
| "from": null, | |
| "to": 1478634600000, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.constraints.enforcedUntil": { | |
| "from": 1478634300000, | |
| "to": null, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "path": "distributionWindows.constraints" | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "must_not": { | |
| "nested": { | |
| "filter": { | |
| "and": { | |
| "filters": [ | |
| { | |
| "term": { | |
| "distributionWindows.constraints.type": "FORBIDDEN" | |
| } | |
| }, | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "f81ab6bd-93e5-431f-b08c-456c5ff5bfa7" | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "691215de-8fde-400d-ba8f-946684a75062" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "b2f7159e-0755-4ade-96be-a8d3767c3e49" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "distributionWindows.constraints.categoryIds": "2f74e683-52a7-484a-97a1-c32f74deb74d" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.constraints.enforcedAt": { | |
| "from": null, | |
| "to": 1478634600000, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| }, | |
| { | |
| "range": { | |
| "distributionWindows.constraints.enforcedUntil": { | |
| "from": 1478634300000, | |
| "to": null, | |
| "include_lower": true, | |
| "include_upper": true | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "path": "distributionWindows.constraints" | |
| } | |
| } | |
| } | |
| }, | |
| "path": "distributionWindows" | |
| } | |
| } | |
| ], | |
| "must_not": [ | |
| { | |
| "term": { | |
| "allDealOptionsSoldOut": "true" | |
| } | |
| }, | |
| { | |
| "terms": { | |
| "uuid": [ | |
| "e0f791c8-4e0a-4890-9eb4-9ee82e562089", | |
| "5cdccd7c-8556-7860-75d1-60793d6ca69e", | |
| "8b247e7c-15d3-6bae-74a9-9c5fe5dc003b", | |
| "da29b46f-e3c8-44e8-9826-c2eb478831b8", | |
| "39f42cd4-7075-f075-09ca-fde1bb319e53", | |
| "9f353be8-13bf-a2ac-8147-d8a050af6f1d", | |
| "8b6fbe6c-2ebd-4920-919d-3c24af37c47d", | |
| "dd5b67c5-7703-44f4-ae75-e78b428b6bb2", | |
| "c7f8443f-23d4-713a-cd3e-897ea103d8ad", | |
| "23f1a615-56b6-b72a-918c-6a905b96299f", | |
| "aa091059-de35-509d-e400-63dcd70da6ae", | |
| "b3e0f354-a52e-ec3a-b3d2-19849a38064a", | |
| "5cf5b99b-bc5c-80a0-53ed-79d495bef3a9", | |
| "1c13aceb-1d92-e262-8ebc-e5de469403f4", | |
| "f78b8259-fdab-f1cb-ae4b-6b7b96a045ec", | |
| "ebc610e1-e530-f210-25ae-7a7684099788", | |
| "382652ac-0ace-4e3b-8523-5bd5d6e847ec", | |
| "dc7f8e27-34c0-3a9b-cbb4-f57565d98e0c", | |
| "4bea22bc-fe6b-49e6-80e6-a318301c1382", | |
| "c4bcf944-5ed0-2e17-c803-ed18601030fc", | |
| "77c5e5e9-712f-b97a-c990-3222991b8afa", | |
| "ec5a19e6-c2e0-50d3-269d-7bb5486717ba", | |
| "23035712-b760-8957-e5d8-dde46a71f02f", | |
| "6373ef69-b523-78ef-a469-2002b28df08f", | |
| "7511ec99-eaf4-44f9-9cd3-e6790b8ac9a0", | |
| "0203e89a-349b-7fbb-10d4-b88522aa4d82", | |
| "2f781d88-c8c5-c9b5-c9ba-a9e1751bf576", | |
| "daf20232-c128-cf4d-27ba-abdf5965715f", | |
| "be7c5bc1-e31e-25bf-4ca9-847ce62ebb4c", | |
| "deed2d98-ad86-e8f7-90b5-ea1eb7c82412", | |
| "668d8181-edb4-4ab9-a102-9a3b3426465b", | |
| "baa08eb2-6068-4aaa-89f5-da3c529022ac", | |
| "4c1426cb-1849-6a45-7d1d-8d8d09957aa1", | |
| "cd526393-d21e-35dd-bb3f-92404ce79989", | |
| "c333c9be-269e-111d-0aa5-55fea002444b", | |
| "cccf11bd-2f21-0552-de0d-cc40634f1f10", | |
| "ac7f0ff5-635d-4a38-a1c8-5165b0bbaab8", | |
| "5e989ceb-19d3-a2e9-22ac-db1fca15b608", | |
| "4864a2e2-d8b0-a9d4-c1d9-2ee0b5632dac", | |
| "4b63fee5-1fed-50a5-e8bd-4bd9a350131c", | |
| "18d9af8a-3ed6-d29e-23cd-02b6793ee40a", | |
| "c1de77e7-922f-c480-516a-8a83cd73cdc5", | |
| "0ea99ff1-0af0-2b3f-9987-cb93f2e2d1cf", | |
| "01e00424-f96b-8a0d-e30a-ebf7bb91da3c", | |
| "9e488569-bd15-501b-c6f7-d611619ff8ae", | |
| "d83042aa-25a3-42fc-b255-b9b6db05d00f", | |
| "adca0781-808c-0933-e2d0-d7990c9fd76c", | |
| "73b72b3b-ce07-75da-0a0c-8d02adc5110d", | |
| "6465c058-5386-49f1-91b2-1a35ada20127", | |
| "03d781fe-10eb-4864-89da-282296f53381", | |
| "c3a19791-1775-0d01-4c8c-f6a6b3b4f15a", | |
| "57dba8b2-b2e2-24fb-6eb9-5e7292f57ab0", | |
| "289293be-ed01-2d96-1141-86df4f3014a0", | |
| "232b5d22-4839-4977-8d41-60cee02478f9", | |
| "45482d22-1141-5cd4-bf99-1fa2afff1ec1", | |
| "6a865a48-ce99-4696-953d-2c1095340f5d" | |
| ] | |
| } | |
| }, | |
| { | |
| "or": { | |
| "filters": [ | |
| { | |
| "nested": { | |
| "filter": { | |
| "term": { | |
| "customerTaxonomies.subCat.uuid": "642e3b72-b940-47e8-89ef-bcaf903ab56f" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "filter": { | |
| "term": { | |
| "customerTaxonomies.subCat2.uuid": "9202d351-7530-4613-a1ec-5da6b7205a38" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "filter": { | |
| "term": { | |
| "customerTaxonomies.subCat2.uuid": "13498c3b-ef4e-48fa-9bef-cd85243d9038" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "term": { | |
| "tags.uuid": "0042918e-3fef-4d69-8fb1-35bc0faf5566" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "term": { | |
| "dealOptions.inventoryServiceId": "clo" | |
| } | |
| }, | |
| { | |
| "terms": { | |
| "categoryIds": [ | |
| "2423f160-c483-4e0d-8e7c-d79223bd8b94" | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "fields": [], | |
| "fielddata_fields": [ | |
| "_timestamp" | |
| ], | |
| "script_fields": { | |
| "score_object": { | |
| "script": "darwin.scoring.plugin.data", | |
| "lang": "native", | |
| "params": { | |
| "requestId": "79ff7e5d-0460-44f4-b9ed-d3bacf135749", | |
| "dataField": "score", | |
| "scriptDataType": "SCORING", | |
| "isDebugModeEnabled": true, | |
| "isScoresRecorderEnabled": false | |
| } | |
| }, | |
| "bands": { | |
| "script": "darwin.scoring.plugin.data", | |
| "lang": "native", | |
| "params": { | |
| "requestId": "79ff7e5d-0460-44f4-b9ed-d3bacf135749", | |
| "scriptDataType": "BANDS" | |
| } | |
| }, | |
| "nested_match": { | |
| "script": "darwin.scoring.plugin.data", | |
| "lang": "native", | |
| "params": { | |
| "dataField": "dealOptions", | |
| "scriptDataType": "NESTED_CAPTURE", | |
| "requestId": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| }, | |
| "sort": [ | |
| { | |
| "_script": { | |
| "script": "darwin.scoring.plugin.bands.sort", | |
| "type": "number", | |
| "reverse": true, | |
| "lang": "native", | |
| "params": { | |
| "requestId": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| }, | |
| { | |
| "_script": { | |
| "script": "darwin.scoring.plugin.smartdeals", | |
| "type": "number", | |
| "reverse": true, | |
| "lang": "native", | |
| "params": { | |
| "scoring_function": "algo.all_features", | |
| "postprocessing_functions": [], | |
| "payload": { | |
| "userFeatures": { | |
| "userProfileFeatures": { | |
| "userId": "ffa7c700-1ea9-11e5-a358-002590980646", | |
| "gender": "MALE", | |
| "primaryZipCode": null, | |
| "age": null, | |
| "createdDate": "2015-06-29 21:58:39", | |
| "userInterests": null, | |
| "isAdultDealFilterOn": false | |
| }, | |
| "userInferencedFeatures": { | |
| "udaScores": {}, | |
| "dealClickCount": {}, | |
| "engagement": null, | |
| "userActivityFreshnessScore": {}, | |
| "userActivityFreshnessEmailOpenProbMap": {}, | |
| "userPurchaseHistory": { | |
| "dealPurchaseHistory": {}, | |
| "subCategory2PurchaseHistory": {}, | |
| "purchasedDealCloneIdentifiers": {}, | |
| "dealRedemptionDates": {} | |
| }, | |
| "searchHistoryProfiles": {}, | |
| "deal": null, | |
| "userPersonalPreferenceData": { | |
| "scores": {} | |
| }, | |
| "d2dPersonalizationData": { | |
| "scores": {} | |
| }, | |
| "userDislikes": { | |
| "taxonomyScore": {} | |
| }, | |
| "userMfModelData": { | |
| "scores": {} | |
| }, | |
| "userPreferredLocation": { | |
| "preferredUserGeoPoint": { | |
| "latitude": 28.652849197387695, | |
| "longitude": -81.44265747070312 | |
| }, | |
| "preferredPostalCode": "32714", | |
| "expressedLocationGeoPoint": { | |
| "latitude": 28.652849197387695, | |
| "longitude": -81.44265747070312 | |
| }, | |
| "division": { | |
| "permalink": "orlando", | |
| "uuid": "a9839dd8-1118-4ac3-81dc-7b6881f5d1ba" | |
| }, | |
| "inferredNormalizedPostalCode": "32714", | |
| "preferredLocationType": "LAT_LONG", | |
| "distanceFromHomeToExpressedLocation": 1.7976931348623157e+308, | |
| "homeCityFriendlyName": "", | |
| "homeStateAbbr": "", | |
| "isUserAddressIgnored": true, | |
| "dateTimeZone": "America/New_York" | |
| } | |
| }, | |
| "userClassification": "DEFAULT_USER_WEIGHTS" | |
| }, | |
| "context": { | |
| "contextName": "mobile_search", | |
| "experimentName": "Control" | |
| }, | |
| "algoScoringArguments": { | |
| "oddsGeneratorArgs": { | |
| "key": "ODDS", | |
| "modelScope": "OVERALL_DECAYED", | |
| "useGlobalOdds": true, | |
| "useSurfaceOdds": false, | |
| "useSurfaceOddsVariance": false, | |
| "oddsSurfaceModelMap": {} | |
| }, | |
| "dealPerformanceGeneratorArgs": { | |
| "key": "DDO_NAIVE_BAYES", | |
| "distanceExponent": 4, | |
| "useOddsCvrRatioAsFallback": false, | |
| "alwaysUseOddsCvrRatioForDistance": false, | |
| "alwaysUseOddsCvrRatioForGender": false, | |
| "useExponentInGeometricOrder": false, | |
| "takeGeometricMean": true, | |
| "interpolateDistanceCvr": false, | |
| "modelScope": "OVERALL_NEW_GETAWAYS_DISTANCE_BUCKET" | |
| }, | |
| "purchaseBackOffGeneratorArgs": { | |
| "key": null, | |
| "backOffTable": "/back_off_table.json", | |
| "dedupClones": false, | |
| "waitForRedemption": false, | |
| "maxBackOffDaysBeforeRedemption": 120, | |
| "backOffDaysAfterRedemption": 30, | |
| "defaultDealBackOffDays": 30, | |
| "defaultSubcat2BackOffDays": 0 | |
| }, | |
| "ratingGeneratorArgs": { | |
| "key": "AGE_LIMITED_RATING_BOOST", | |
| "modelsByChannel": { | |
| "goods": { | |
| "SIMPLE_PRS_RATING": { | |
| "boostBuckets": [ | |
| 1, | |
| 2, | |
| 3, | |
| 3.7, | |
| 5 | |
| ], | |
| "boostMultipliers": [ | |
| 0.1, | |
| 0.5, | |
| 0.9, | |
| 1.1 | |
| ], | |
| "boostCutoff": 100000, | |
| "confidenceRequired": 10 | |
| } | |
| }, | |
| "local": { | |
| "OPPORTUNITY_PREDICTION_DIVISION_RANKED": { | |
| "boostBuckets": [ | |
| 0, | |
| 25, | |
| 75, | |
| 100 | |
| ], | |
| "boostMultipliers": [ | |
| 0.2, | |
| 0.66, | |
| 1 | |
| ], | |
| "boostCutoff": 7, | |
| "confidenceRequired": 0 | |
| } | |
| } | |
| } | |
| }, | |
| "distanceAffinityGeneratorArgs": { | |
| "key": null, | |
| "maxBoost": 4, | |
| "minBoost": 0.25, | |
| "taxonomyLevel": "CATEGORY" | |
| }, | |
| "distancePenaltyGeneratorArgs": { | |
| "key": null, | |
| "penalty": 1, | |
| "radiusIndex": "SMALL_RADIUS" | |
| }, | |
| "dealEndGeneratorArgs": { | |
| "key": null, | |
| "alreadySeenDealBoostSlope": 0, | |
| "alreadySeenDealBoostIntercept": 1, | |
| "notSeenDealBoostSlope": 0, | |
| "notSeenDealBoostIntercept": 1, | |
| "boostDays": 3, | |
| "personalizationThresholdToBoost": 1, | |
| "doBoostClickedDeals": false | |
| }, | |
| "cloGeneratorArgs": { | |
| "key": "CLO_SKIP_DDO", | |
| "skipComputationForCloDeals": false | |
| }, | |
| "searchHistoryGeneratorArgs": { | |
| "key": null, | |
| "minBoost": 1.5, | |
| "maxBoost": 3, | |
| "enabled": false, | |
| "strategy": "default" | |
| }, | |
| "personalPreferenceGeneratorArgs": { | |
| "key": null, | |
| "maxBoost": 4, | |
| "minBoost": 0.5, | |
| "groupAttributeIds": [ | |
| "0002", | |
| "0003", | |
| "0004" | |
| ], | |
| "strategy": "USERS_ALL", | |
| "scoreSelector": "DEEPEST_NODES_WITH_PP_DATA_SELECTOR", | |
| "checkOverBoost": false, | |
| "personalizationBoostThreshold": 2 | |
| }, | |
| "seasonalityGeneratorArgs": { | |
| "key": null, | |
| "minBoost": 1, | |
| "maxBoost": 2, | |
| "defaultBoostExponentiation": 1, | |
| "engagedBoostExponentiation": 1, | |
| "disengagedBoostExponentiation": 1, | |
| "lowBoostCategoriesExponentiation": 1, | |
| "strategy": "LOW_BOOST", | |
| "exploreDays": [ | |
| "Thu", | |
| "Sun", | |
| "Wed", | |
| "Sat", | |
| "Fri", | |
| "Tue", | |
| "Mon" | |
| ], | |
| "lowBoostCategories": [] | |
| }, | |
| "userDislikesGeneratorArgs": { | |
| "key": null, | |
| "minBoost": 0.625, | |
| "maxBoost": 0.8333333333333334, | |
| "strategy": "default" | |
| }, | |
| "userInterestsArgs": { | |
| "key": null, | |
| "userInterestSmoothingFactor": 0.1, | |
| "userInterestScalingFactor": 60000001, | |
| "userInterestMeanShift": 10.1, | |
| "userInterestMaxBoost": 2.3, | |
| "userInterestGoodsBoost": false | |
| }, | |
| "scoresEnsemblingArgs": { | |
| "key": "SCORES_ENSEMBLING_NAIVE", | |
| "variant": null | |
| }, | |
| "matrixFactorizationGeneratorArgs": { | |
| "key": null, | |
| "dataVersionKey": "var1", | |
| "maxBoost": 2, | |
| "minBoost": 1, | |
| "thresholdScore": 0.1, | |
| "thresholdPosition": 50, | |
| "scoreFilterStrategy": "FILTER_BY_SCORE", | |
| "scoreRescalingStrategy": "LINEAR_RESCALING" | |
| }, | |
| "contextLayerAlgoScoringArguments": { | |
| "attributesCacheEnabled": true, | |
| "scoreCacheEnabled": true, | |
| "personalizationGeneratorArgs": { | |
| "key": null, | |
| "experimentName": "decayed", | |
| "maxBoost": 4 | |
| }, | |
| "userEngagementGeneratorArgs": { | |
| "key": null, | |
| "cacheName": "engagement", | |
| "maxBoost": 4, | |
| "groupAttributeIds": [ | |
| "0001", | |
| "0002", | |
| "0003", | |
| "000b", | |
| "0004" | |
| ] | |
| }, | |
| "dealBoostGeneratorArgs": { | |
| "key": null, | |
| "dealBoostWeight": 1 | |
| }, | |
| "freshnessGeneratorArgs": { | |
| "key": null, | |
| "freshnessDataType": "MOBILE_WEB_ONLY", | |
| "freshnessDecisionTreeParams": { | |
| "experimentVersion": "", | |
| "freshnessV1HighPenaltyDaysThreshold": 7, | |
| "freshnessV1LowPenaltyDaysThreshold": 30, | |
| "freshnessV1HighPenaltyScore": 0.6, | |
| "freshnessV1LowPenaltyScore": 0.8 | |
| }, | |
| "freshnessSigmoidFunctionParams": { | |
| "bufferSize": 0, | |
| "penaltySize": 5, | |
| "exponent": 0.5, | |
| "emailFreshnessStrategy": "APPLY_FRESHNESS_WITH_CERTAIN_PROBABILITY", | |
| "mobilePositionSigmoidFunctionParams": { | |
| "1": { | |
| "inflection": 15, | |
| "beta": 0.6, | |
| "minimum": 0.5, | |
| "maximum": 1 | |
| }, | |
| "9": { | |
| "inflection": 15, | |
| "beta": 0.2, | |
| "minimum": 0.7, | |
| "maximum": 1 | |
| } | |
| }, | |
| "emailPositionSigmoidFunctionParams": { | |
| "0": { | |
| "inflection": 36, | |
| "beta": 1, | |
| "minimum": 0.5, | |
| "maximum": 0.98 | |
| }, | |
| "1": { | |
| "inflection": 23, | |
| "beta": 1, | |
| "minimum": 0.75, | |
| "maximum": 0.98 | |
| }, | |
| "9": { | |
| "inflection": 16, | |
| "beta": 1, | |
| "minimum": 0.8, | |
| "maximum": 0.99 | |
| } | |
| }, | |
| "emailOpenPositionSigmoidFunctionParams": { | |
| "0": { | |
| "inflection": 36, | |
| "beta": 1, | |
| "minimum": 0.1, | |
| "maximum": 0.6 | |
| }, | |
| "1": { | |
| "inflection": 23, | |
| "beta": 1, | |
| "minimum": 0.3, | |
| "maximum": 0.98 | |
| }, | |
| "9": { | |
| "inflection": 16, | |
| "beta": 1, | |
| "minimum": 0.5, | |
| "maximum": 0.99 | |
| } | |
| }, | |
| "isEmailFreshnessOpenProbMapUsed": true | |
| } | |
| }, | |
| "locationAffinityGeneratorArgs": { | |
| "key": null | |
| }, | |
| "queryClickModelGeneratorArgs": { | |
| "key": null, | |
| "maxBoost": 4, | |
| "boostMultiplier": 1, | |
| "boostThreshold": 1 | |
| }, | |
| "d2dPersonalizationGeneratorArgs": { | |
| "key": null, | |
| "maxBoost": 4, | |
| "simExperimentName": "decayed", | |
| "d2dSimilarityCacheName": "d2d_similarity", | |
| "d2dAvgCtrCacheName": "d2d_ctr", | |
| "groupAttributeIds": [ | |
| "0002", | |
| "0003", | |
| "0004" | |
| ], | |
| "groupAttributesToBeImputed": [ | |
| "0003" | |
| ], | |
| "attributeSelector": "LEAF_SUBCAT2_ONLY_SELECTOR", | |
| "impressionCountTransformer": { | |
| "type": "LINEAR_TRANSFORMER", | |
| "impressionThreshold": 10 | |
| } | |
| }, | |
| "featureVectorScorerArgs": { | |
| "key": "GAUSSIAN_PRIOR_CI" | |
| }, | |
| "calibratorArgs": { | |
| "key": "BASIC_CALIBRATOR", | |
| "calibratorWeightMap": { | |
| "DEFAULT_USER_WEIGHTS": { | |
| "conversionRateWeight": 0.8, | |
| "expectedQuantityWeight": 0, | |
| "expectedBookingsWeight": 0.04, | |
| "expectedProfitWeight": 0.16, | |
| "priceExponent": 0.6 | |
| }, | |
| "NEW_USER": { | |
| "conversionRateWeight": 0.99, | |
| "expectedQuantityWeight": 0, | |
| "expectedBookingsWeight": 0.005, | |
| "expectedProfitWeight": 0.005, | |
| "priceExponent": 0.6 | |
| }, | |
| "ANONYMOUS_USER": { | |
| "conversionRateWeight": 0.99, | |
| "expectedQuantityWeight": 0, | |
| "expectedBookingsWeight": 0.005, | |
| "expectedProfitWeight": 0.005, | |
| "priceExponent": 0.6 | |
| } | |
| }, | |
| "marginCalculationMethod": "CHANNEL_LEVEL_MARGIN", | |
| "marginSelectionMap": { | |
| "getaways": "CHANNEL_LEVEL_MARGIN", | |
| "goods": "CHANNEL_LEVEL_MARGIN", | |
| "local": "CHANNEL_LEVEL_MARGIN" | |
| }, | |
| "dealAgeDdoEvidenceBoostMode": "IGNORE_EVIDENCE", | |
| "dealAgeDdoPerformanceThreshold": -1, | |
| "cloBookingsEstimate": 0, | |
| "dealAgeDayNodes": [], | |
| "dealAgeMultipliers": [], | |
| "dealAgeAdjusterByChannel": {}, | |
| "distancePriorityParams": null, | |
| "disableNormalization": false, | |
| "disableDealAgeBoostForNewUser": true | |
| }, | |
| "scoreTransformationArgs": { | |
| "key": "SCORE_TRANSFORMATION_POSTPROCESSOR", | |
| "boostingRules": null | |
| }, | |
| "collaborativeFilteringGeneratorArgs": { | |
| "key": null, | |
| "u2uCacheName": "persona", | |
| "maxBoost": 4 | |
| }, | |
| "collectionScoringArgs": { | |
| "key": null, | |
| "enableParentChildScoring": true, | |
| "maxChildrenInResponse": 5, | |
| "childDiscountPercentile": 0.8, | |
| "priorityBoost": 5 | |
| }, | |
| "qualificationScoringArgs": { | |
| "key": null, | |
| "useMerchantToFilterGoodsMarketplaceDeals": false | |
| }, | |
| "debugMode": "business", | |
| "scoringScriptContext": "SORT" | |
| } | |
| }, | |
| "userDealLocationInterestInput": { | |
| "cityPermalink": "", | |
| "neighborhoodFriendlyName": "", | |
| "cityFriendlyNameAndStateAbbr": "", | |
| "cityFriendlyName": "", | |
| "zipCodes": [], | |
| "isDistanceIgnoredForCityBoosting": true, | |
| "isLocPlateauingForBrowseContextEnabled": false, | |
| "pseudoNeighborhoodDistanceThreshold": 4, | |
| "isStateAbbreviationSupported": true, | |
| "country": "US" | |
| }, | |
| "queryTerm": "iphone charger case", | |
| "seasonalityData": { | |
| "seasonalityTerm": "", | |
| "engagementLevel": null | |
| }, | |
| "useU2U": false, | |
| "requestStartTime": 1478634415928 | |
| }, | |
| "request_id": "79ff7e5d-0460-44f4-b9ed-d3bacf135749" | |
| } | |
| } | |
| } | |
| ], | |
| "track_scores": true, | |
| "same_filter_across_all_aggs": { | |
| "filter": { | |
| "query": { | |
| "filtered": { | |
| "query": { | |
| "bool": { | |
| "should": [ | |
| { | |
| "bool": { | |
| "must": [ | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "permalink.search", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "best_fields", | |
| "operator": "AND" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "must": [ | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cell-phone-cases" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| }, | |
| { | |
| "nested": { | |
| "query": { | |
| "term": { | |
| "customerTaxonomies.subCat2.seoName": "cables-chargers-and-adapters" | |
| } | |
| }, | |
| "path": "customerTaxonomies" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| }, | |
| { | |
| "bool": { | |
| "should": [ | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapters case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers cases", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone charger case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone adapter case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| }, | |
| { | |
| "multi_match": { | |
| "query": "iphone chargers case", | |
| "fields": [ | |
| "creativeContent.title.en", | |
| "dealOptions.titleMap.en_US", | |
| "merchantServiceName.en", | |
| "dealOptions.titleMap.en", | |
| "creativeContent.briefSummary.en_US", | |
| "merchantServiceName.en_US", | |
| "permalink.search", | |
| "creativeContent.briefSummary.en", | |
| "creativeContent.title.en_US" | |
| ], | |
| "type": "cross_fields", | |
| "operator": "AND" | |
| } | |
| } | |
| ], | |
| "minimum_should_match": "1" | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "filter": { | |
| "match_all": {} | |
| } | |
| } | |
| } | |
| }, | |
| "aggregations": { | |
| "topcategory_uuid_filter_aggregation": { | |
| "aggregations": { | |
| "topcategory_uuid_aggregation": { | |
| "nested": { | |
| "path": "customerTaxonomies" | |
| }, | |
| "aggregations": { | |
| "topcategory_uuid_terms_aggregation": { | |
| "terms": { | |
| "field": "customerTaxonomies.topCategory.uuid", | |
| "size": 0 | |
| }, | |
| "aggregations": { | |
| "parent": { | |
| "reverse_nested": {} | |
| }, | |
| "category_uuid_terms_aggregation": { | |
| "terms": { | |
| "field": "customerTaxonomies.category.uuid", | |
| "size": 0 | |
| }, | |
| "aggregations": { | |
| "parent": { | |
| "reverse_nested": {} | |
| }, | |
| "subcategory_uuid_terms_aggregation": { | |
| "terms": { | |
| "field": "customerTaxonomies.subCat.uuid", | |
| "size": 0 | |
| }, | |
| "aggregations": { | |
| "parent": { | |
| "reverse_nested": {} | |
| }, | |
| "subcategory2_uuid_terms_aggregation": { | |
| "terms": { | |
| "field": "customerTaxonomies.subCat2.uuid", | |
| "size": 0 | |
| }, | |
| "aggregations": { | |
| "parent": { | |
| "reverse_nested": {} | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "brand_uuid_filter_aggregation": { | |
| "aggregations": { | |
| "brand_uuid_terms_aggregation": { | |
| "terms": { | |
| "field": "brands.uuid", | |
| "size": 0 | |
| } | |
| } | |
| } | |
| }, | |
| "price_filter_aggregation": { | |
| "aggregations": { | |
| "price_nested_aggregation": { | |
| "nested": { | |
| "path": "dealOptions" | |
| }, | |
| "aggregations": { | |
| "min_price": { | |
| "min": { | |
| "field": "dealOptions.perUserMinUnitPriceMinor.amount" | |
| } | |
| }, | |
| "max_price": { | |
| "max": { | |
| "field": "dealOptions.perUserMinUnitPriceMinor.amount" | |
| } | |
| }, | |
| "price_histogram": { | |
| "histogram": { | |
| "field": "dealOptions.perUserMinUnitPriceMinor.amount", | |
| "interval": 500 | |
| }, | |
| "aggregations": { | |
| "stats": { | |
| "stats": { | |
| "field": "dealOptions.perUserMinUnitPriceMinor.amount" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "distance_filter_aggregation": { | |
| "aggregations": { | |
| "min_distance": { | |
| "min": { | |
| "script": "darwin.scoring.plugin.minDistance", | |
| "lang": "native", | |
| "params": { | |
| "user_lat": 28.652849197387695, | |
| "unit": "ft", | |
| "geo_path": "locations.geoPoint", | |
| "user_lon": -81.44265747070312 | |
| } | |
| } | |
| }, | |
| "max_distance": { | |
| "max": { | |
| "script": "darwin.scoring.plugin.minDistance", | |
| "lang": "native", | |
| "params": { | |
| "user_lat": 28.652849197387695, | |
| "unit": "ft", | |
| "geo_path": "locations.geoPoint", | |
| "user_lon": -81.44265747070312 | |
| } | |
| } | |
| }, | |
| "distance_histogram": { | |
| "histogram": { | |
| "script": "darwin.scoring.plugin.minDistance", | |
| "lang": "native", | |
| "params": { | |
| "user_lat": 28.652849197387695, | |
| "unit": "ft", | |
| "geo_path": "locations.geoPoint", | |
| "user_lon": -81.44265747070312 | |
| }, | |
| "interval": 5280 | |
| }, | |
| "aggregations": { | |
| "stats": { | |
| "stats": { | |
| "script": "darwin.scoring.plugin.minDistance", | |
| "lang": "native", | |
| "params": { | |
| "user_lat": 28.652849197387695, | |
| "unit": "ft", | |
| "geo_path": "locations.geoPoint", | |
| "user_lon": -81.44265747070312 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "category_attributes_fdbdb53f-5537-4627-b42f-7d87e7f8fbc4_filter_aggregation": { | |
| "aggregations": { | |
| "category_attributes_fdbdb53f-5537-4627-b42f-7d87e7f8fbc4_terms_aggregation": { | |
| "terms": { | |
| "field": "dealOptions.attributes.valuesByName.fdbdb53f-5537-4627-b42f-7d87e7f8fbc4", | |
| "size": 0 | |
| } | |
| } | |
| } | |
| }, | |
| "category_attributes_5b33ec97-7e15-4e7d-92c5-84a8eadbae2e_filter_aggregation": { | |
| "aggregations": { | |
| "category_attributes_5b33ec97-7e15-4e7d-92c5-84a8eadbae2e_terms_aggregation": { | |
| "terms": { | |
| "field": "dealOptions.attributes.valuesByName.5b33ec97-7e15-4e7d-92c5-84a8eadbae2e", | |
| "size": 0 | |
| } | |
| } | |
| } | |
| }, | |
| "category_attributes_bc80b602-8b32-4337-8f38-e75d3968606c_filter_aggregation": { | |
| "aggregations": { | |
| "category_attributes_bc80b602-8b32-4337-8f38-e75d3968606c_terms_aggregation": { | |
| "terms": { | |
| "field": "dealOptions.attributes.valuesByName.bc80b602-8b32-4337-8f38-e75d3968606c", | |
| "size": 0 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment