Created
February 6, 2017 19:24
-
-
Save milad621/a6850aa296e052324d9190f6ef5fb5a8 to your computer and use it in GitHub Desktop.
Run the same 4000 line query with all aggregations in place but without any sort clauses and record the took time
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" | |
| } | |
| } | |
| }, | |
| "track_scores": true, | |
| "aggregations": { | |
| "topcategory_uuid_filter_aggregation": { | |
| "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_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": { | |
| "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": { | |
| "brand_uuid_terms_aggregation": { | |
| "terms": { | |
| "field": "brands.uuid", | |
| "size": 0 | |
| } | |
| } | |
| } | |
| }, | |
| "price_filter_aggregation": { | |
| "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": { | |
| "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": { | |
| "filter": { | |
| "and": { | |
| "filters": [ | |
| { | |
| "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": {} | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "exists": { | |
| "field": "locations.geoPoint" | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "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": { | |
| "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": { | |
| "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": { | |
| "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": { | |
| "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": { | |
| "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": { | |
| "category_attributes_bc80b602-8b32-4337-8f38-e75d3968606c_terms_aggregation": { | |
| "terms": { | |
| "field": "dealOptions.attributes.valuesByName.bc80b602-8b32-4337-8f38-e75d3968606c", | |
| "size": 0 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Author
Author
{
"took": 542,
"timed_out": false,
"_shards": {
"total": 14,
"successful": 0,
"failed": 14,
"failures": [
{
"shard": 0,
"index": "deals-1485325330749",
"node": "M7Gd1k3uQJaKhzGBa1JP4A",
"reason": {
"type": "scripting_exception",
"reason": "scripting_exception: java.lang.NullPointerException",
"caused_by": {
"type": "null_pointer_exception",
"reason": null
}
}
}
,
{
"shard": 7,
"index": "deals-1485325330749",
"node": "2YcvZJ-ORs-she8VZLc0yA",
"reason": {
"type": "scripting_exception",
"reason": "java.lang.NullPointerException",
"caused_by": {
"type": "null_pointer_exception",
"reason": null
}
}
}
]
},
"hits": {
"total": 12927,
"max_score": 26.179169,
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
500-600 ms