Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Url: "/?s=&post_type=product&wpsolr_sort=sort_by_relevancy_desc&wpsolr_fq[0]=product_cat_str%3AFashion&wpsolr_fq[1]=product_cat_str%3AWomen&wpsolr_fq[2]=product_cat_str%3AWomen%20Bags&wpsolr_fq[3]=product_cat_str%3ATotes"
- Index: "new_index"
- Nb results shown: 20
- Total nb results: 66
- Speed: 398 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": "Grocery"
- }
- },
- "weight": 7
- },
- {
- "filter": {
- "match": {
- "product_cat_str": "eggs"
- }
- },
- "weight": 1
- },
- {
- "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
- },
- {
- "filter": {
- "match": {
- "product_brand_str": "Crest"
- }
- },
- "weight": 3
- },
- {
- "filter": {
- "match": {
- "author": "italist"
- }
- },
- "weight": 3
- }
- ],
- "query": {
- "bool": {
- "must": {
- "query_string": {
- "fields": [
- "title^5",
- "content^2",
- "product_cat_str^10",
- "product_brand_str",
- "author"
- ],
- "query": "(*)",
- "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": [
- "Fashion"
- ]
- }
- },
- {
- "terms": {
- "non_flat_hierarchy_product_cat_str": [
- "Women"
- ]
- }
- },
- {
- "terms": {
- "non_flat_hierarchy_product_cat_str": [
- "Women Bags"
- ]
- }
- },
- {
- "terms": {
- "non_flat_hierarchy_product_cat_str": [
- "Totes"
- ]
- }
- }
- ]
- }
- }
- }
- },
- {
- "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
- }
- }
- }
- }
- }
- },
- "pa_artisana_str": {
- "filter": {
- "bool": {
- "must": [
- {
- "bool": {
- "must": [
- {
- "terms": {
- "type": [
- "product"
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "pa_artisana_str": {
- "filter": {
- "match_all": {}
- },
- "aggs": {
- "pa_artisana_str": {
- "terms": {
- "field": "pa_artisana_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
- }
- }
- }
- }
- }
- }
- }
- }
- "pa_artisana_str": {
- "doc_count": 66,
- "pa_artisana_str": {
- "doc_count": 66,
- "pa_artisana_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "Artisana products",
- "doc_count": 3
- }
- ]
- }
- }
- },
- "pa_health-facts_str": {
- "doc_count": 66,
- "pa_health-facts_str": {
- "doc_count": 66,
- "pa_health-facts_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": []
- }
- }
- },
- "_price_f": {
- "doc_count": 66,
- "_price_f": {
- "doc_count": 66,
- "_price_f": {
- "count": 67,
- "min": 109,
- "max": 17957.099609375,
- "avg": 7275.810374473458,
- "sum": 487479.2950897217
- }
- }
- },
- "pa_gender_str": {
- "doc_count": 66,
- "pa_gender_str": {
- "doc_count": 66,
- "pa_gender_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "Women",
- "doc_count": 7
- }
- ]
- }
- }
- },
- "flat_hierarchy_product_cat_str": {
- "doc_count": 66,
- "flat_hierarchy_product_cat_str": {
- "doc_count": 66,
- "flat_hierarchy_product_cat_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "Fashion",
- "doc_count": 66
- },
- {
- "key": "Fashion->Women",
- "doc_count": 66
- },
- {
- "key": "Fashion->Women->Women Bags",
- "doc_count": 66
- },
- {
- "key": "Fashion->Women->Women Bags->Totes",
- "doc_count": 66
- }
- ]
- }
- }
- },
- "pa_color_str": {
- "doc_count": 66,
- "pa_color_str": {
- "doc_count": 66,
- "pa_color_str": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 2,
- "buckets": [
- {
- "key": "Black",
- "doc_count": 19
- },
- {
- "key": "Brown",
- "doc_count": 8
- },
- {
- "key": "Red",
- "doc_count": 8
- },
- {
- "key": "Beige",
- "doc_count": 4
- },
- {
- "key": "Burgundy",
- "doc_count": 3
- },
- {
- "key": "Nude",
- "doc_count": 3
- },
- {
- "key": "Blue",
- "doc_count": 2
- },
- {
- "key": "Gray",
- "doc_count": 2
- },
- {
- "key": "Maroon",
- "doc_count": 2
- },
- {
- "key": "Rose",
- "doc_count": 2
- },
- {
- "key": "Black\/Gold",
- "doc_count": 1
- },
- {
- "key": "Black\/Silver",
- "doc_count": 1
- },
- {
- "key": "Black\/White",
- "doc_count": 1
- },
- {
- "key": "Candy",
- "doc_count": 1
- },
- {
- "key": "Khaki",
- "doc_count": 1
- },
- {
- "key": "Light Pink",
- "doc_count": 1
- },
- {
- "key": "Multicolor",
- "doc_count": 1
- },
- {
- "key": "Navy Blue",
- "doc_count": 1
- },
- {
- "key": "Pale Pink",
- "doc_count": 1
- },
- {
- "key": "Pink",
- "doc_count": 1
- }
- ]
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement