Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Url: "/?product_cat=fashion-3&s=fashion&post_type=product&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: 213
- Speed: 127 ms
- Query: {
- "from": 0,
- "size": 20,
- "highlight": {
- "require_field_match": false,
- "pre_tags": [
- "<b>"
- ],
- "post_tags": [
- "<\/b>"
- ],
- "fields": {
- "title": {
- "fragment_size": 100,
- "number_of_fragments": 1
- }
- }
- },
- "_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": "(fashion)",
- "default_operator": "AND"
- }
- },
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "post_status_s": [
- "draft",
- "pending",
- "trash",
- "future",
- "private",
- "auto-draft"
- ]
- }
- }
- ]
- }
- },
- {
- "bool": {
- "must": {
- "bool": {
- "must": [
- {
- "terms": {
- "non_flat_hierarchy_product_cat_str": [
- "Men"
- ]
- }
- },
- {
- "terms": {
- "non_flat_hierarchy_product_cat_str": [
- "Eyewear"
- ]
- }
- },
- {
- "terms": {
- "non_flat_hierarchy_product_cat_str": [
- "Eyeglasses"
- ]
- }
- }
- ]
- }
- }
- }
- },
- {
- "bool": {
- "must_not": [
- {
- "terms": {
- "type": [
- "shop_order"
- ]
- }
- }
- ]
- }
- },
- {
- "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-search"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "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": 213,
- "product_brand_str": {
- "doc_count": 213,
- "product_brand_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "Ray-Ban",
- "doc_count": 38
- },
- {
- "key": "Polaroid",
- "doc_count": 29
- },
- {
- "key": "Carrera",
- "doc_count": 15
- },
- {
- "key": "Vogue",
- "doc_count": 15
- },
- {
- "key": "Swarovski",
- "doc_count": 10
- },
- {
- "key": "Moschino",
- "doc_count": 9
- },
- {
- "key": "Prada Sport",
- "doc_count": 6
- },
- {
- "key": "Bvlgari",
- "doc_count": 5
- },
- {
- "key": "Polo Ralph Lauren",
- "doc_count": 4
- },
- {
- "key": "Versace",
- "doc_count": 4
- },
- {
- "key": "Prada",
- "doc_count": 3
- },
- {
- "key": "Michael Kors",
- "doc_count": 2
- },
- {
- "key": "Montblanc",
- "doc_count": 2
- },
- {
- "key": "Cartier",
- "doc_count": 1
- },
- {
- "key": "Lacoste",
- "doc_count": 1
- },
- {
- "key": "Roberto Cavalli",
- "doc_count": 1
- },
- {
- "key": "Tommy Hilfiger",
- "doc_count": 1
- },
- {
- "key": "Yves Saint Laurent",
- "doc_count": 1
- }
- ]
- }
- }
- },
- "pa_health-facts_str": {
- "doc_count": 213,
- "pa_health-facts_str": {
- "doc_count": 213,
- "pa_health-facts_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": []
- }
- }
- },
- "_price_f": {
- "doc_count": 213,
- "_price_f": {
- "doc_count": 213,
- "_price_f": {
- "count": 219,
- "min": 173.25,
- "max": 10421.25,
- "avg": 678.4438337212828,
- "sum": 148579.19958496094
- }
- }
- },
- "pa_gender_str": {
- "doc_count": 213,
- "pa_gender_str": {
- "doc_count": 213,
- "pa_gender_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": []
- }
- }
- },
- "flat_hierarchy_product_cat_str": {
- "doc_count": 213,
- "flat_hierarchy_product_cat_str": {
- "doc_count": 213,
- "flat_hierarchy_product_cat_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "Fashion",
- "doc_count": 213
- },
- {
- "key": "Fashion->Men",
- "doc_count": 213
- },
- {
- "key": "Fashion->Men->Eyewear",
- "doc_count": 213
- },
- {
- "key": "Fashion->Men->Eyewear->Eyeglasses",
- "doc_count": 213
- }
- ]
- }
- }
- },
- "pa_color_str": {
- "doc_count": 213,
- "pa_color_str": {
- "doc_count": 213,
- "pa_color_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 2,
- "buckets": [
- {
- "key": "Clear\/Havana",
- "doc_count": 66
- },
- {
- "key": "Clear\/Black",
- "doc_count": 40
- },
- {
- "key": "Clear\/Gold",
- "doc_count": 14
- },
- {
- "key": "Clear\/Brown",
- "doc_count": 11
- },
- {
- "key": "Clear\/Blue",
- "doc_count": 9
- },
- {
- "key": "Clear\/Silver",
- "doc_count": 9
- },
- {
- "key": "Clear\/Purple",
- "doc_count": 8
- },
- {
- "key": "Clear",
- "doc_count": 5
- },
- {
- "key": "Clear\/Gray",
- "doc_count": 5
- },
- {
- "key": "Clear\/Grey",
- "doc_count": 5
- },
- {
- "key": "Clear\/Pink",
- "doc_count": 5
- },
- {
- "key": "Clear\/Green",
- "doc_count": 3
- },
- {
- "key": "Clear\/Light blue",
- "doc_count": 3
- },
- {
- "key": "Clear\/Multicolor",
- "doc_count": 3
- },
- {
- "key": "Clear\/Red",
- "doc_count": 3
- },
- {
- "key": "Brown\/Taupe",
- "doc_count": 1
- },
- {
- "key": "Clear\/Red & Black",
- "doc_count": 1
- },
- {
- "key": "Clear\/Rose",
- "doc_count": 1
- },
- {
- "key": "Clear\/Transparent",
- "doc_count": 1
- },
- {
- "key": "Clear\/White",
- "doc_count": 1
- }
- ]
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement