Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # http://xx.xx.xx.46:9200/10wp-2_v2/post/_msearch
  2. {}
  3. {"size":0,"query":{"bool":{"filter":[{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}],"must_not":[{"terms":{"terms.product_visibility.term_taxonomy_id":[3293]}}]}},{"term":{"post_type.raw":"product"}},{"terms":{"post_status":["publish","acf-disabled"]}}]}},"post_filter":{"bool":{"filter":[{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}],"must_not":[{"terms":{"terms.product_visibility.term_taxonomy_id":[3293]}}]}},{"term":{"post_type.raw":"product"}},{"terms":{"post_status":["publish","acf-disabled"]}}]}},"aggs":{"pa_brand":{"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}},"aggs":{"pa_brand":{"terms":{"size":100,"field":"terms.pa_brand.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"pa_brand":{"top_hits":{"size":1,"_source":["terms.pa_brand"]}}}}}},"pa_color":{"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}},"aggs":{"pa_color":{"terms":{"size":100,"field":"terms.pa_color.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"pa_color":{"top_hits":{"size":1,"_source":["terms.pa_color"]}}}}}},"pa_merchant":{"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}},"aggs":{"pa_merchant":{"terms":{"size":100,"field":"terms.pa_merchant.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"pa_merchant":{"top_hits":{"size":1,"_source":["terms.pa_merchant"]}}}}}},"pa_wzor":{"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}},"aggs":{"pa_wzor":{"terms":{"size":100,"field":"terms.pa_wzor.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"pa_wzor":{"top_hits":{"size":1,"_source":["terms.pa_wzor"]}}}}}},"pa_material":{"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}},"aggs":{"pa_material":{"terms":{"size":100,"field":"terms.pa_material.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"pa_material":{"top_hits":{"size":1,"_source":["terms.pa_material"]}}}}}},"pa_rozmiar":{"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}},"aggs":{"pa_rozmiar":{"terms":{"size":100,"field":"terms.pa_rozmiar.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"pa_rozmiar":{"top_hits":{"size":1,"_source":["terms.pa_rozmiar"]}}}}}},"product_cat":{"filter":{"match_all":{"boost":1}},"aggs":{"product_cat":{"terms":{"size":100,"field":"terms.product_cat.slug","order":{"_count":"desc"},"collect_mode":"breadth_first"},"aggs":{"product_cat":{"top_hits":{"size":1,"_source":["terms.product_cat"]}}}}}},"price":{"aggs":{"percentiles":{"percentiles":{"field":"meta._price.double"}},"min":{"min":{"field":"meta._price.double"}},"max":{"max":{"field":"meta._price.double"}}},"filter":{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}}},"discount":{"filter":{"bool":{"filter":[{"range":{"meta._sale_price.double":{"gt":0}}},{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}]}}}}}
  4. {}
  5. {"from":0,"size":248,"sort":[{"_score":{"order":"desc"}},`{"meta._convertiser_productfeeds_product_popularity.double":{"order":"desc"}}],"query":{"function_score":{"query":{"bool":{"filter":[{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}],"must_not":[{"terms":{"terms.product_visibility.term_taxonomy_id":[3293]}}]}},{"term":{"post_type.raw":"product"}},{"terms":{"post_status":["publish","acf-disabled"]}}]}},"functions":[{"random_score":{"seed":20190111,"field":"_seq_no"}},{"script_score":{"script":{"lang":"painless","source":"def offer_id = doc.containsKey('meta._offer_id.value') ? doc['meta._offer_id.raw'].value : ''; if (offer_id == '') { return 1; } if (params.bad_offers.contains(offer_id)) { return 0.01; } def is_cpc = doc.containsKey('meta._is_cpc.value') && doc['meta._is_cpc.boolean'].value == true; def cpc_rate = (params.cpc_rates instanceof Map) && is_cpc && params.cpc_rates.containsKey(offer_id) ? params.cpc_rates[offer_id] : 0; def epc_rate = (params.epc_rates instanceof Map) && !is_cpc && params.epc_rates.containsKey(offer_id) ? params.epc_rates[offer_id] : 0; def log_rate = 0; if (cpc_rate > 0) { log_rate = 2 * Math.log10(100 * cpc_rate); } if (cpc_rate == 0 && epc_rate > 0) { log_rate = Math.log10(100 * epc_rate); } return log_rate > 1 ? log_rate : 1;","params":{"cpc_rates":{"MKB5lzBJxW":0.25,"108":0.32,"9qXD2EwJKm":0.25,"mPwDNNWD43":0.25,"akrD8q65Nx":0.3,"4WYJ3Er5Bl":0.25,"kvjJ4wbn3x":0.25,"mPwDNzWD43":0.2,"QApJ0MbD3E":0.25,"OwQnOmGD47":0.25},"epc_rates":{"103":1.033,"9qXD2MdJKm":1.0663,"4WYJ32vnBl":0.362,"119":0.0237,"16":0.32,"125":0.0296,"2kPJgGxJwX":0.3077,"47":0.0276,"112":0.0151,"akrD8bGnNx":0.19,"z2eJMBaDgL":0.6375,"101":1.11,"2kPJgPeDwX":0.21,"z2eJMmYJgL":0.1609,"VOWJzwWDKa":0.0386,"YzZJGoZJBl":0.7673,"4PeDEp9Jml":0.2918,"qzLDXzynOl":0.9742,"108":0.01,"d2PnqP25q7":0.023,"54":0.0326,"GwbJkg8Jky":1.0077,"75":0.0426,"14":0.0327,"36X57NQDxp":0.16,"67":0.254,"OwQnOylD47":0.1974,"NklDrWL53K":2.8621,"7W3DY3gnmy":1.2639,"lBOnBRXnRp":0.2787,"58":0.4787,"105":0.1551,"4PeDE32nml":4.6061,"MKB5l475xW":0.5919,"L21Dj4znm0":0.1428,"116":0.0624,"33":0.0269,"4WYJ3Yv5Bl":0.9306,"120":0.0962,"mY8neKPDL7":0.2661,"lBOnBpoDRp":0.0683,"12":0.04,"KQYJRXo5Nb":0.0993,"kvjJ42m53x":0.2871,"z2eJMXangL":2.3338,"7xeDww7DzQ":0.0659,"9ZV5xkNDa3":1.3675,"akrD8q65Nx":0.3113,"66":0.2304,"6VrJyjdDYW":0.7024,"9ZV5xq7na3":1.1964,"7":0.11,"94":0.9938,"107":0.09,"L21DjPgnm0":0.7701,"23":0.1863,"113":0.0399,"W2KnbKzJGl":0.7057,"z2eJMgg5gL":0.15,"109":2.0469,"104":0.0785,"kvjJ4wbn3x":0.0919,"106":0.0474,"MKB5lo7DxW":0.03,"2":0.2599,"65":3.288,"46":0.2978,"p8251NNndb":0.11,"NklDrP3n3K":0.041,"N7xJVNjJ12":0.0525,"rbXnmQ1nKN":0.198,"7W3DYGonmy":1.6686,"OwQnO1lD47":0.3083,"29":0.6123,"77":0.4869,"0Qb5ogW5LO":0.6798,"mPwDNpzn43":0.05,"QApJ0WKn3E":2.861,"0Qb5oRPDLO":0.4659,"WgEDW0y5Nm":0.1332,"22":0.1442,"49":0.0761,"28":0.3886,"31":2.0673,"59":0.1006,"9Mp56bM5Lk":5.3061,"dR7JA9AJYZ":1.384,"6VrJyW65YW":0.2904,"0Ke5ZdKJoM":0.8407,"98":2.7942,"36":0.1114,"88":0.7249,"56":1.1987,"L21Dj46nm0":0.4477,"81":0.4076,"3OZnLYMJVw":1.0545,"lN1JvaAndv":0.4,"rbBJpRR5PM":8.2115,"4PeDEQxDml":0.05,"68":0.5952,"15":0.0887,"lN1JvwODdv":0.853,"0Qb5oBrDLO":0.8243,"82":2.662},"bad_offers":["7","15"]}}}}],"score_mode":"multiply","boost_mode":"replace"}},"post_filter":{"bool":{"filter":[{"bool":{"filter":[{"terms":{"terms.product_cat.slug":["majtki-damskie-koronkowe","majtki-damskie-szorty","panty-damskie","majtki-damskie","bokserki-damskie","figi","stringi"]}}],"must_not":[{"terms":{"terms.product_visibility.term_taxonomy_id":[3293]}}]}},{"term":{"post_type.raw":"product"}},{"terms":{"post_status":["publish","acf-disabled"]}}]}}}`
Advertisement
RAW Paste Data Copied
Advertisement