Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Url: "/product-category/fashion-3/?wpsolr_fq%5B0%5D=product_cat_str%3AMen&wpsolr_fq%5B1%5D=product_cat_str%3AEyewear&wpsolr_fq%5B2%5D=product_cat_str%3AEyeglasses&wpsolr_sort=sort_by_relevancy_desc"
- Index: "new_index"
- Nb results shown: 20
- Total nb results: 3297
- Speed: 368 ms
- Query: {
- "from": 0,
- "size": 20,
- "_source": [
- "id",
- "PID",
- "type",
- "meta_type_s",
- "title",
- "numcomments",
- "comments",
- "displaydate",
- "displaymodified",
- "*categories_str",
- "author",
- "*post_thumbnail_href_str",
- "*post_href_str",
- "snippet_s"
- ],
- "query": {
- "function_score": {
- "functions": [
- {
- "filter": {
- "match": {
- "product_cat_str": "Smartphones"
- }
- },
- "weight": 3
- },
- {
- "filter": {
- "match": {
- "product_cat_str": "Smartwatch Accessories"
- }
- },
- "weight": 2.5
- },
- {
- "filter": {
- "match": {
- "product_cat_str": "Apples"
- }
- },
- "weight": 3
- },
- {
- "filter": {
- "match": {
- "product_cat_str": "Juice"
- }
- },
- "weight": 3
- },
- {
- "filter": {
- "match": {
- "product_cat_str": "Pie"
- }
- },
- "weight": 2
- },
- {
- "filter": {
- "match": {
- "product_cat_str": "Mangos"
- }
- },
- "weight": 7
- },
- {
- "filter": {
- "match": {
- "product_brand_str": "Hugo Boss"
- }
- },
- "weight": 2
- },
- {
- "filter": {
- "match": {
- "product_brand_str": "Aamrai"
- }
- },
- "weight": 4
- },
- {
- "filter": {
- "match": {
- "product_brand_str": "Del Monte"
- }
- },
- "weight": 3
- }
- ],
- "query": {
- "bool": {
- "must": {
- "query_string": {
- "fields": [
- "title^5",
- "content^2",
- "product_cat_str",
- "product_brand_str"
- ],
- "query": "(*)",
- "default_operator": "AND"
- }
- },
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "post_status_s": [
- "draft",
- "pending",
- "trash",
- "future",
- "private",
- "auto-draft"
- ]
- }
- }
- ]
- }
- },
- {
- "bool": {
- "must": {
- "term": {
- "non_flat_hierarchy_product_cat_str": "Fashion"
- }
- }
- }
- },
- {
- "bool": {
- "should": [
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- },
- {
- "bool": {
- "should": [
- {
- "bool": {
- "must_not": [
- {
- "exists": {
- "field": "product_visibility_str"
- }
- }
- ]
- }
- },
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "product_visibility_str": [
- "exclude-from-catalog"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "bool": {
- "should": [
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- },
- {
- "terms": {
- "product_stock_str": [
- "y"
- ]
- }
- }
- ]
- }
- },
- {
- "bool": {
- "should": [
- {
- "bool": {
- "must_not": [
- {
- "bool": {
- "must": {
- "exists": {
- "field": "is_excluded_s"
- }
- }
- }
- }
- ]
- }
- },
- {
- "terms": {
- "is_excluded_s": [
- "n"
- ]
- }
- }
- ]
- }
- },
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "_id": [
- "wpsolr_doc_id_attachment"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- "post_filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "_price_f": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "_price_f": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "_price_f": {
- "stats": {
- "field": "_price_f"
- }
- }
- }
- }
- }
- },
- "product_brand_str": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "product_brand_str": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "product_brand_str": {
- "terms": {
- "field": "product_brand_str",
- "size": 20
- }
- }
- }
- }
- }
- },
- "pa_gender_str": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "pa_gender_str": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "pa_gender_str": {
- "terms": {
- "field": "pa_gender_str",
- "size": 20
- }
- }
- }
- }
- }
- },
- "pa_color_str": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "pa_color_str": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "pa_color_str": {
- "terms": {
- "field": "pa_color_str",
- "size": 20
- }
- }
- }
- }
- }
- },
- "pa_health-facts_str": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "pa_health-facts_str": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "pa_health-facts_str": {
- "terms": {
- "field": "pa_health-facts_str",
- "size": 20
- }
- }
- }
- }
- }
- },
- "flat_hierarchy_product_cat_str": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "flat_hierarchy_product_cat_str": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "flat_hierarchy_product_cat_str": {
- "terms": {
- "field": "flat_hierarchy_product_cat_str",
- "size": 20
- }
- }
- }
- }
- }
- }
- }
- }
- "aggregations": {
- "product_brand_str": {
- "doc_count": 3297,
- "product_brand_str": {
- "doc_count": 3297,
- "product_brand_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 834,
- "buckets": [
- {
- "key": "Twinkle Hands",
- "doc_count": 382
- },
- {
- "key": "Pronovias",
- "doc_count": 121
- },
- {
- "key": "Beach&Bandits",
- "doc_count": 119
- },
- {
- "key": "Paul & Shark",
- "doc_count": 111
- },
- {
- "key": "AbyKay",
- "doc_count": 105
- },
- {
- "key": "SprayGround",
- "doc_count": 100
- },
- {
- "key": "Trixie",
- "doc_count": 92
- },
- {
- "key": "New Balance",
- "doc_count": 84
- },
- {
- "key": "Ray-Ban",
- "doc_count": 82
- },
- {
- "key": "Polaroid",
- "doc_count": 77
- },
- {
- "key": "Just Cavalli",
- "doc_count": 75
- },
- {
- "key": "Karl Lagerfeld",
- "doc_count": 75
- },
- {
- "key": "Indietales",
- "doc_count": 66
- },
- {
- "key": "Versace",
- "doc_count": 52
- },
- {
- "key": "Carrera",
- "doc_count": 50
- },
- {
- "key": "Timberland",
- "doc_count": 45
- },
- {
- "key": "Armani Exchange",
- "doc_count": 43
- },
- {
- "key": "Swarovski",
- "doc_count": 42
- },
- {
- "key": "Salvatore Ferragamo",
- "doc_count": 36
- },
- {
- "key": "Vogue",
- "doc_count": 35
- }
- ]
- }
- }
- },
- "pa_health-facts_str": {
- "doc_count": 3297,
- "pa_health-facts_str": {
- "doc_count": 3297,
- "pa_health-facts_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": []
- }
- }
- },
- "_price_f": {
- "doc_count": 3297,
- "_price_f": {
- "doc_count": 3297,
- "_price_f": {
- "count": 3324,
- "min": 0,
- "max": 89351.8515625,
- "avg": 1657.1589078401114,
- "sum": 5508396.20966053
- }
- }
- },
- "pa_gender_str": {
- "doc_count": 3297,
- "pa_gender_str": {
- "doc_count": 3297,
- "pa_gender_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "Women",
- "doc_count": 82
- },
- {
- "key": "Men",
- "doc_count": 24
- },
- {
- "key": "Boys",
- "doc_count": 2
- },
- {
- "key": "Unisex",
- "doc_count": 2
- }
- ]
- }
- }
- },
- "flat_hierarchy_product_cat_str": {
- "doc_count": 3297,
- "flat_hierarchy_product_cat_str": {
- "doc_count": 3297,
- "flat_hierarchy_product_cat_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 2756,
- "buckets": [
- {
- "key": "Fashion",
- "doc_count": 3297
- },
- {
- "key": "Fashion->Men",
- "doc_count": 1311
- },
- {
- "key": "Fashion->Women",
- "doc_count": 1202
- },
- {
- "key": "Fashion->Women->Women Clothing",
- "doc_count": 687
- },
- {
- "key": "Fashion->Men->Eyewear",
- "doc_count": 622
- },
- {
- "key": "Fashion->Boys",
- "doc_count": 554
- },
- {
- "key": "Fashion->Girls",
- "doc_count": 551
- },
- {
- "key": "Fashion->Men->Men Clothing",
- "doc_count": 499
- },
- {
- "key": "Fashion->Girls->Girls Clothing",
- "doc_count": 445
- },
- {
- "key": "Fashion->Boys->Boys Clothing",
- "doc_count": 435
- },
- {
- "key": "Fashion->Men->Eyewear->Sunglasses",
- "doc_count": 398
- },
- {
- "key": "Fashion->Boys->Boys Clothing->Shirts",
- "doc_count": 337
- },
- {
- "key": "Fashion->Girls->Girls Clothing->Shirts & Blouses",
- "doc_count": 306
- },
- {
- "key": "Fashion->Women->Women Clothing->Wedding Dress",
- "doc_count": 245
- },
- {
- "key": "Fashion->Men->Eyewear->Eyeglasses",
- "doc_count": 213
- },
- {
- "key": "Fashion->Women->Eyewear",
- "doc_count": 196
- },
- {
- "key": "Fashion->Women->Women Bags",
- "doc_count": 188
- },
- {
- "key": "Fashion->Women->Women Clothing->Dresses",
- "doc_count": 161
- },
- {
- "key": "Fashion->Luggage & Travel Gear",
- "doc_count": 153
- },
- {
- "key": "Fashion->Men->Men Clothing->Shirts",
- "doc_count": 143
- }
- ]
- }
- }
- },
- "pa_color_str": {
- "doc_count": 3297,
- "pa_color_str": {
- "doc_count": 3297,
- "pa_color_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 743,
- "buckets": [
- {
- "key": "Black",
- "doc_count": 264
- },
- {
- "key": "White",
- "doc_count": 224
- },
- {
- "key": "Blue",
- "doc_count": 110
- },
- {
- "key": "Clear\/Havana",
- "doc_count": 88
- },
- {
- "key": "Pink",
- "doc_count": 60
- },
- {
- "key": "Clear\/Black",
- "doc_count": 59
- },
- {
- "key": "Red",
- "doc_count": 59
- },
- {
- "key": "Brown",
- "doc_count": 55
- },
- {
- "key": "Green",
- "doc_count": 55
- },
- {
- "key": "Grey",
- "doc_count": 47
- },
- {
- "key": "Grey\/Black",
- "doc_count": 33
- },
- {
- "key": "Ivory",
- "doc_count": 30
- },
- {
- "key": "Navy Blue",
- "doc_count": 29
- },
- {
- "key": "Brown\/Gold",
- "doc_count": 27
- },
- {
- "key": "Yellow",
- "doc_count": 26
- },
- {
- "key": "Purple",
- "doc_count": 25
- },
- {
- "key": "Beige",
- "doc_count": 23
- },
- {
- "key": "Brown\/Havana",
- "doc_count": 23
- },
- {
- "key": "Gray\/Black",
- "doc_count": 22
- },
- {
- "key": "Multicolor",
- "doc_count": 21
- }
- ]
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement