| 1 |
16.45 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"969e9d8d4509e20ed09840a20f075ec8"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":144,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 245,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "182d494630a75f4d36a3151e66a33b5c",
"_score": 100.0,
"_source": {
"id": "182d494630a75f4d36a3151e66a33b5c",
"autoIncrement": 64571.0
},
"fields": {
"displayGroup": [
"74d66f0b3cf8961e9bb5c89491feeb8a"
]
},
"sort": [
0,
100.0,
0,
64571,
"182d494630a75f4d36a3151e66a33b5c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1ce5e66070db526777653841551ed066",
"_score": 100.0,
"_source": {
"id": "1ce5e66070db526777653841551ed066",
"autoIncrement": 64570.0
},
"fields": {
"displayGroup": [
"37958bbba80261d380e7c95f2bb1878e"
]
},
"sort": [
0,
100.0,
0,
64570,
"1ce5e66070db526777653841551ed066"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "73910a716fbdd96099acac197dbf6fe0",
"_score": 100.0,
"_source": {
"id": "73910a716fbdd96099acac197dbf6fe0",
"autoIncrement": 64569.0
},
"fields": {
"displayGroup": [
"6b9f71946961fe3f4f34630607ef1662"
]
},
"sort": [
0,
100.0,
0,
64569,
"73910a716fbdd96099acac197dbf6fe0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a03cf783843eb4a587bf4c412e2df66b",
"_score": 100.0,
"_source": {
"id": "a03cf783843eb4a587bf4c412e2df66b",
"autoIncrement": 64568.0
},
"fields": {
"displayGroup": [
"94e132ba70ba02eb4fa22dfdef58c286"
]
},
"sort": [
0,
100.0,
0,
64568,
"a03cf783843eb4a587bf4c412e2df66b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c145f03fafc461799f503dac2475ad29",
"_score": 100.0,
"_source": {
"id": "c145f03fafc461799f503dac2475ad29",
"autoIncrement": 64566.0
},
"fields": {
"displayGroup": [
"c78c53f82ae448706fc67050c1677128"
]
},
"sort": [
0,
100.0,
0,
64566,
"c145f03fafc461799f503dac2475ad29"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "254c0e449ee475ea87211836104d65f3",
"_score": 100.0,
"_source": {
"id": "254c0e449ee475ea87211836104d65f3",
"autoIncrement": 64540.0
},
"fields": {
"displayGroup": [
"d3e75e1c4ebe06387d080ba1790cf3c8"
]
},
"sort": [
0,
100.0,
0,
64540,
"254c0e449ee475ea87211836104d65f3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "82becc998261c818cb77b4db90e80fc9",
"_score": 100.0,
"_source": {
"id": "82becc998261c818cb77b4db90e80fc9",
"autoIncrement": 64539.0
},
"fields": {
"displayGroup": [
"b87dc1c4937e72a52a2d3f4f64a5a8f8"
]
},
"sort": [
0,
100.0,
0,
64539,
"82becc998261c818cb77b4db90e80fc9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0747043051521327327db5815eafb46b",
"_score": 100.0,
"_source": {
"id": "0747043051521327327db5815eafb46b",
"autoIncrement": 64537.0
},
"fields": {
"displayGroup": [
"9c8093ee69f0f8ba643e32cbb7d007bc"
]
},
"sort": [
0,
100.0,
0,
64537,
"0747043051521327327db5815eafb46b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a99abb401c3721b71e971d14d981f6c3",
"_score": 100.0,
"_source": {
"id": "a99abb401c3721b71e971d14d981f6c3",
"autoIncrement": 64530.0
},
"fields": {
"displayGroup": [
"e2a4521ad4ed837c1dc9d49653e4fb9c"
]
},
"sort": [
0,
100.0,
0,
64530,
"a99abb401c3721b71e971d14d981f6c3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b80cff2e19f00fca3e560cfc4fc4cd36",
"_score": 100.0,
"_source": {
"id": "b80cff2e19f00fca3e560cfc4fc4cd36",
"autoIncrement": 64528.0
},
"fields": {
"displayGroup": [
"848f4d3b1efbde6ed5fe1dea764c923d"
]
},
"sort": [
0,
100.0,
0,
64528,
"b80cff2e19f00fca3e560cfc4fc4cd36"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9c4ea9c4730b2a992fd17da75e0b0784",
"_score": 100.0,
"_source": {
"id": "9c4ea9c4730b2a992fd17da75e0b0784",
"autoIncrement": 64526.0
},
"fields": {
"displayGroup": [
"28e5b092f0cf3e59118bdda8adfd7d32"
]
},
"sort": [
0,
100.0,
0,
64526,
"9c4ea9c4730b2a992fd17da75e0b0784"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "66b84771dbe548c4cbdbb4ce330a2705",
"_score": 100.0,
"_source": {
"id": "66b84771dbe548c4cbdbb4ce330a2705",
"autoIncrement": 64524.0
},
"fields": {
"displayGroup": [
"469a645316a34dabb104d529fb9349f2"
]
},
"sort": [
0,
100.0,
0,
64524,
"66b84771dbe548c4cbdbb4ce330a2705"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37753ce578369969b26ea3cc66b141ae",
"_score": 100.0,
"_source": {
"id": "37753ce578369969b26ea3cc66b141ae",
"autoIncrement": 64522.0
},
"fields": {
"displayGroup": [
"8ce1852b7fc57996f84c23f907a1fcb9"
]
},
"sort": [
0,
100.0,
0,
64522,
"37753ce578369969b26ea3cc66b141ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c4a63fd64b2cac8f256280f8d0e57a07",
"_score": 100.0,
"_source": {
"id": "c4a63fd64b2cac8f256280f8d0e57a07",
"autoIncrement": 64520.0
},
"fields": {
"displayGroup": [
"7914a8d25154549745e0af5a63cac1ea"
]
},
"sort": [
0,
100.0,
0,
64520,
"c4a63fd64b2cac8f256280f8d0e57a07"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "321597d2e28411af2593ea9f5582a61e",
"_score": 100.0,
"_source": {
"id": "321597d2e28411af2593ea9f5582a61e",
"autoIncrement": 64519.0
},
"fields": {
"displayGroup": [
"ecf213c43a96754af07997d62ce9077e"
]
},
"sort": [
0,
100.0,
0,
64519,
"321597d2e28411af2593ea9f5582a61e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "58ef2c4e682811f41e65445ba2ef88a6",
"_score": 100.0,
"_source": {
"id": "58ef2c4e682811f41e65445ba2ef88a6",
"autoIncrement": 64517.0
},
"fields": {
"displayGroup": [
"6c6947aba31284f90ff3bde159ea70f9"
]
},
"sort": [
0,
100.0,
0,
64517,
"58ef2c4e682811f41e65445ba2ef88a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "93c31f4d769c26e5d3f1599b8848a39a",
"_score": 100.0,
"_source": {
"id": "93c31f4d769c26e5d3f1599b8848a39a",
"autoIncrement": 64515.0
},
"fields": {
"displayGroup": [
"3ee9ec372606b63fa4fb90a3fe8ac924"
]
},
"sort": [
0,
100.0,
0,
64515,
"93c31f4d769c26e5d3f1599b8848a39a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "85585a8b4cc2d4b2fd14d5cc2d447186",
"_score": 100.0,
"_source": {
"id": "85585a8b4cc2d4b2fd14d5cc2d447186",
"autoIncrement": 64513.0
},
"fields": {
"displayGroup": [
"3dc10281ab7ccd0263e19ab6e450a2d8"
]
},
"sort": [
0,
100.0,
0,
64513,
"85585a8b4cc2d4b2fd14d5cc2d447186"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84dbfdfd6da7a941f30832d87f64cd8d",
"_score": 100.0,
"_source": {
"id": "84dbfdfd6da7a941f30832d87f64cd8d",
"autoIncrement": 64027.0
},
"fields": {
"displayGroup": [
"cc478ce19f0c5ce316346a63fabd368f"
]
},
"sort": [
0,
100.0,
0,
64027,
"84dbfdfd6da7a941f30832d87f64cd8d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7bea946aeff969a48d4d18bab7d5598",
"_score": 100.0,
"_source": {
"id": "b7bea946aeff969a48d4d18bab7d5598",
"autoIncrement": 64024.0
},
"fields": {
"displayGroup": [
"352465966e56f660f7d76604e4f49892"
]
},
"sort": [
0,
100.0,
0,
64024,
"b7bea946aeff969a48d4d18bab7d5598"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "337ac45cd007a4ddc43371178f2be12d",
"_score": 100.0,
"_source": {
"id": "337ac45cd007a4ddc43371178f2be12d",
"autoIncrement": 63958.0
},
"fields": {
"displayGroup": [
"dc0d10887b739b8af13de1b364b82a3d"
]
},
"sort": [
0,
100.0,
0,
63958,
"337ac45cd007a4ddc43371178f2be12d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b00ff175708bb4ac2160334769a45e3c",
"_score": 100.0,
"_source": {
"id": "b00ff175708bb4ac2160334769a45e3c",
"autoIncrement": 29454.0
},
"fields": {
"displayGroup": [
"7e7b6d9f04e4b24497283d7629b4d086"
]
},
"sort": [
0,
100.0,
0,
29454,
"b00ff175708bb4ac2160334769a45e3c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "80f872c610480a9e7f4606d9dc4aa372",
"_score": 100.0,
"_source": {
"id": "80f872c610480a9e7f4606d9dc4aa372",
"autoIncrement": 29428.0
},
"fields": {
"displayGroup": [
"2f73df056ce224fee61ca3476d46ac3a"
]
},
"sort": [
0,
100.0,
0,
29428,
"80f872c610480a9e7f4606d9dc4aa372"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "881158bf6fd45f46c97504859516744b",
"_score": 100.0,
"_source": {
"id": "881158bf6fd45f46c97504859516744b",
"autoIncrement": 29427.0
},
"fields": {
"displayGroup": [
"b9d0e506c8f2e390de52ed15060b8446"
]
},
"sort": [
0,
100.0,
0,
29427,
"881158bf6fd45f46c97504859516744b"
]
}
]
},
"aggregations": {
"total-count": {
"value": 245
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.49 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"969e9d8d4509e20ed09840a20f075ec8"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-traglast":{"composite":{"sources":[{"multi-traglast.sorting":{"terms":{"field":"attribute_traglast","order":"ASC"}}},{"multi-traglast.key":{"terms":{"field":"attribute_traglast"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "969e9d8d4509e20ed09840a20f075ec8"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-traglast": {
"composite": {
"sources": [
{
"multi-traglast.sorting": {
"terms": {
"field": "attribute_traglast",
"order": "ASC"
}
}
},
{
"multi-traglast.key": {
"terms": {
"field": "attribute_traglast"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 245,
"min": 4.8,
"max": 2349.0,
"avg": 221.4387755102041,
"sum": 54252.5
},
"rating-exists": {
"doc_count": 245,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1acbf8858846ac1ca47b6395e9eca5e2",
"manufacturer-count-filter.key": "1acbf8858846ac1ca47b6395e9eca5e2"
},
"doc_count": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 81
},
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 17
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Palettenregal Trennarme",
"multi-typModel.key": "Palettenregal Trennarme"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Ausrollregale",
"multi-typModel.key": "Zubeh\u00f6r Ausrollregale"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Auszugregale",
"multi-typModel.key": "Zubeh\u00f6r Auszugregale"
},
"doc_count": 73
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 133
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kabeltrommelregale",
"multi-typModel.key": "Zubeh\u00f6r Kabeltrommelregale"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Reifenregale",
"multi-typModel.key": "Zubeh\u00f6r Reifenregale"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schlauchregale",
"multi-typModel.key": "Zubeh\u00f6r Schlauchregale"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Wabenregale",
"multi-typModel.key": "Zubeh\u00f6r Wabenregale"
},
"doc_count": 6
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"doc_count": 14
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 300.0,
"multi-width.key": 300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 600.0,
"multi-width.key": 600.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 701.0,
"multi-width.key": 701.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 805.0,
"multi-width.key": 805.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 870.0,
"multi-width.key": 870.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 890.0,
"multi-width.key": 890.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 900.0,
"multi-width.key": 900.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 918.0,
"multi-width.key": 918.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 985.0,
"multi-width.key": 985.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1090.0,
"multi-width.key": 1090.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1200.0,
"multi-width.key": 1200.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 1400.0,
"multi-width.key": 1400.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 13
},
{
"key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"doc_count": 2
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 75.0,
"multi-height.key": 75.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1500.0,
"multi-height.key": 1500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 1830.0,
"multi-height.key": 1830.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 8
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 3
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 27
},
{
"key": {
"multi-tiefe.sorting": 540.0,
"multi-tiefe.key": 540.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 28
},
{
"key": {
"multi-tiefe.sorting": 612.0,
"multi-tiefe.key": 612.0
},
"doc_count": 4
},
{
"key": {
"multi-tiefe.sorting": 750.0,
"multi-tiefe.key": 750.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 860.0,
"multi-tiefe.key": 860.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 9
},
{
"key": {
"multi-tiefe.sorting": 1060.0,
"multi-tiefe.key": 1060.0
},
"doc_count": 13
},
{
"key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 3000.0,
"multi-tiefe.key": 3000.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"doc_count": 2
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
},
"multi-traglast": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 2
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|