| 1 |
15.15 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":"d65d88a8b8740496fcde80b01c793595"}},{"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":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 93,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "b830215e2f87756649438c7255672b69",
"_score": 1100.0,
"_source": {
"id": "b830215e2f87756649438c7255672b69",
"autoIncrement": 146043.0
},
"fields": {
"displayGroup": [
"a0aff4d8e9f2119dc943ec2f5aa66ab2"
]
},
"sort": [
0,
1100.0,
0,
146043,
"b830215e2f87756649438c7255672b69"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0ccbcacc1648b865150e20d66d975489",
"_score": 1100.0,
"_source": {
"id": "0ccbcacc1648b865150e20d66d975489",
"autoIncrement": 145893.0
},
"fields": {
"displayGroup": [
"fa7dc457c1d4db753411dc6ff41c97d5"
]
},
"sort": [
0,
1100.0,
0,
145893,
"0ccbcacc1648b865150e20d66d975489"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "97d91ab8dcffe09966aec8f61d7074db",
"_score": 1100.0,
"_source": {
"id": "97d91ab8dcffe09966aec8f61d7074db",
"autoIncrement": 145892.0
},
"fields": {
"displayGroup": [
"3e3221c2534675648af7bc75a4bd91be"
]
},
"sort": [
0,
1100.0,
0,
145892,
"97d91ab8dcffe09966aec8f61d7074db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "19e5ad20f5e0d739c074c6bb0c4ec4aa",
"_score": 1100.0,
"_source": {
"id": "19e5ad20f5e0d739c074c6bb0c4ec4aa",
"autoIncrement": 145891.0
},
"fields": {
"displayGroup": [
"30007636e3ce53ce82fc5dabc7ee48ac"
]
},
"sort": [
0,
1100.0,
0,
145891,
"19e5ad20f5e0d739c074c6bb0c4ec4aa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b47385d04d335894830ed7058c471465",
"_score": 1100.0,
"_source": {
"id": "b47385d04d335894830ed7058c471465",
"autoIncrement": 145890.0
},
"fields": {
"displayGroup": [
"052c0279dfc9bf1f78d6830085b4d6c3"
]
},
"sort": [
0,
1100.0,
0,
145890,
"b47385d04d335894830ed7058c471465"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37177a0fde20f400f03ae3ef635b2ded",
"_score": 1100.0,
"_source": {
"id": "37177a0fde20f400f03ae3ef635b2ded",
"autoIncrement": 145889.0
},
"fields": {
"displayGroup": [
"6d1f99b6fc6c4ea284ff1ee7c4092c57"
]
},
"sort": [
0,
1100.0,
0,
145889,
"37177a0fde20f400f03ae3ef635b2ded"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0bf2d49d882cb3d035c88d92d12398f1",
"_score": 1100.0,
"_source": {
"id": "0bf2d49d882cb3d035c88d92d12398f1",
"autoIncrement": 145888.0
},
"fields": {
"displayGroup": [
"f8ffd2362ec85ddd8d26e85bb538236b"
]
},
"sort": [
0,
1100.0,
0,
145888,
"0bf2d49d882cb3d035c88d92d12398f1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d9431241915fd91b25ed04cf2462ffc3",
"_score": 1100.0,
"_source": {
"id": "d9431241915fd91b25ed04cf2462ffc3",
"autoIncrement": 145887.0
},
"fields": {
"displayGroup": [
"e9cbf56911464636f02aa61f3a71c449"
]
},
"sort": [
0,
1100.0,
0,
145887,
"d9431241915fd91b25ed04cf2462ffc3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "813454d7893b1d4b383d6daf89885685",
"_score": 1100.0,
"_source": {
"id": "813454d7893b1d4b383d6daf89885685",
"autoIncrement": 139470.0
},
"fields": {
"displayGroup": [
"416f7362a49e727508c72a7e358ec6f3"
]
},
"sort": [
0,
1100.0,
0,
139470,
"813454d7893b1d4b383d6daf89885685"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "188033e6cb8aebba35f35beb0f5da0cc",
"_score": 1100.0,
"_source": {
"id": "188033e6cb8aebba35f35beb0f5da0cc",
"autoIncrement": 139469.0
},
"fields": {
"displayGroup": [
"a39ea401ea7a1d6f3d36aea73be25f20"
]
},
"sort": [
0,
1100.0,
0,
139469,
"188033e6cb8aebba35f35beb0f5da0cc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "499fef58a723f7f32e2c707c76c6bf93",
"_score": 1100.0,
"_source": {
"id": "499fef58a723f7f32e2c707c76c6bf93",
"autoIncrement": 139468.0
},
"fields": {
"displayGroup": [
"3c2883927f0810aea49d047e55017e7c"
]
},
"sort": [
0,
1100.0,
0,
139468,
"499fef58a723f7f32e2c707c76c6bf93"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "17c888532c16a9bb419686081653c0f9",
"_score": 1100.0,
"_source": {
"id": "17c888532c16a9bb419686081653c0f9",
"autoIncrement": 139467.0
},
"fields": {
"displayGroup": [
"af0f3ce8cb6d8c0dd943de6666397eef"
]
},
"sort": [
0,
1100.0,
0,
139467,
"17c888532c16a9bb419686081653c0f9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "40bb1673c9d8bf9239ea42676644b3de",
"_score": 1100.0,
"_source": {
"id": "40bb1673c9d8bf9239ea42676644b3de",
"autoIncrement": 139466.0
},
"fields": {
"displayGroup": [
"beb0dbf39584157c2a31da5ba30679d2"
]
},
"sort": [
0,
1100.0,
0,
139466,
"40bb1673c9d8bf9239ea42676644b3de"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7f6892b42a9fc1393952472f418488b",
"_score": 1100.0,
"_source": {
"id": "b7f6892b42a9fc1393952472f418488b",
"autoIncrement": 139465.0
},
"fields": {
"displayGroup": [
"d17e66f1bf133b0b88cfdbb47a3ae61c"
]
},
"sort": [
0,
1100.0,
0,
139465,
"b7f6892b42a9fc1393952472f418488b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bc3de54d301167d4d927a18dbf4244b9",
"_score": 1100.0,
"_source": {
"id": "bc3de54d301167d4d927a18dbf4244b9",
"autoIncrement": 139464.0
},
"fields": {
"displayGroup": [
"6ac0d49e4d6db76d5cb84f1342b75d63"
]
},
"sort": [
0,
1100.0,
0,
139464,
"bc3de54d301167d4d927a18dbf4244b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e59aa058b91568a2141fff6074d74702",
"_score": 1100.0,
"_source": {
"id": "e59aa058b91568a2141fff6074d74702",
"autoIncrement": 139463.0
},
"fields": {
"displayGroup": [
"947bf7936bcaefdc12cf932ae5d906ff"
]
},
"sort": [
0,
1100.0,
0,
139463,
"e59aa058b91568a2141fff6074d74702"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6aff160b27cfdf4ea24d3440a74c68b9",
"_score": 1100.0,
"_source": {
"id": "6aff160b27cfdf4ea24d3440a74c68b9",
"autoIncrement": 139462.0
},
"fields": {
"displayGroup": [
"68c248475e0fef114ed4073a819d5d7e"
]
},
"sort": [
0,
1100.0,
0,
139462,
"6aff160b27cfdf4ea24d3440a74c68b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f778f3513ed4e1134b27df2b002b2987",
"_score": 1100.0,
"_source": {
"id": "f778f3513ed4e1134b27df2b002b2987",
"autoIncrement": 136660.0
},
"fields": {
"displayGroup": [
"0dc8bfbc6dcf84de4c0f2a9df1d64f58"
]
},
"sort": [
0,
1100.0,
0,
136660,
"f778f3513ed4e1134b27df2b002b2987"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e6ae13ee0c81f44d495467884f87ae18",
"_score": 1100.0,
"_source": {
"id": "e6ae13ee0c81f44d495467884f87ae18",
"autoIncrement": 134739.0
},
"fields": {
"displayGroup": [
"3b4830bdb2f7bcf9ce51e472635c31ac"
]
},
"sort": [
0,
1100.0,
0,
134739,
"e6ae13ee0c81f44d495467884f87ae18"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a944a215434f7131285902c7dc00f611",
"_score": 1100.0,
"_source": {
"id": "a944a215434f7131285902c7dc00f611",
"autoIncrement": 134699.0
},
"fields": {
"displayGroup": [
"72af5c3deb6e05e8f0efaa2d074bf2b8"
]
},
"sort": [
0,
1100.0,
0,
134699,
"a944a215434f7131285902c7dc00f611"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1ff638e116fda5ffc49782d5970e706f",
"_score": 1100.0,
"_source": {
"id": "1ff638e116fda5ffc49782d5970e706f",
"autoIncrement": 134380.0
},
"fields": {
"displayGroup": [
"1562f1561d31445603dd925158fcc184"
]
},
"sort": [
0,
1100.0,
0,
134380,
"1ff638e116fda5ffc49782d5970e706f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a6dfbc7272edb8b668edece892feab96",
"_score": 1100.0,
"_source": {
"id": "a6dfbc7272edb8b668edece892feab96",
"autoIncrement": 134089.0
},
"fields": {
"displayGroup": [
"bdd8e6acaccfde171c881af6e40d8ed6"
]
},
"sort": [
0,
1100.0,
0,
134089,
"a6dfbc7272edb8b668edece892feab96"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "54bd350fd907bb4ea199cf5d0016d8b6",
"_score": 1100.0,
"_source": {
"id": "54bd350fd907bb4ea199cf5d0016d8b6",
"autoIncrement": 127031.0
},
"fields": {
"displayGroup": [
"65ce6fda96f2c460c39961a11e1a61ff"
]
},
"sort": [
0,
1100.0,
0,
127031,
"54bd350fd907bb4ea199cf5d0016d8b6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "61fc2a75720d3766e86b31caaf213e0f",
"_score": 1100.0,
"_source": {
"id": "61fc2a75720d3766e86b31caaf213e0f",
"autoIncrement": 121864.0
},
"fields": {
"displayGroup": [
"5c6462fa571450b5b59d3773219675ff"
]
},
"sort": [
0,
1100.0,
0,
121864,
"61fc2a75720d3766e86b31caaf213e0f"
]
}
]
},
"aggregations": {
"total-count": {
"value": 93
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.28 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":"d65d88a8b8740496fcde80b01c793595"}},{"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"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-ausfuehrungTrennwandelement":{"composite":{"sources":[{"multi-ausfuehrungTrennwandelement.sorting":{"terms":{"field":"attribute_ausfuehrungTrennwandelement","order":"ASC"}}},{"multi-ausfuehrungTrennwandelement.key":{"terms":{"field":"attribute_ausfuehrungTrennwandelement"}}}],"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": "d65d88a8b8740496fcde80b01c793595"
}
},
{
"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"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungTrennwandelement": {
"composite": {
"sources": [
{
"multi-ausfuehrungTrennwandelement.sorting": {
"terms": {
"field": "attribute_ausfuehrungTrennwandelement",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungTrennwandelement.key": {
"terms": {
"field": "attribute_ausfuehrungTrennwandelement"
}
}
}
],
"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": 93,
"min": 34.5,
"max": 8299.0,
"avg": 1257.9408602150538,
"sum": 116988.5
},
"rating-exists": {
"doc_count": 93,
"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": "d4209d6f7a6d6d1745ec549336714d81",
"manufacturer-count-filter.key": "d4209d6f7a6d6d1745ec549336714d81"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "370f952a6a12b228a3e6113f77b76902",
"manufacturer-count-filter.key": "370f952a6a12b228a3e6113f77b76902"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "4616606d5a8590d8c1d305d50dce2f73",
"manufacturer-count-filter.key": "4616606d5a8590d8c1d305d50dce2f73"
},
"doc_count": 82
},
{
"key": {
"manufacturer-count-filter.sorting": "d4209d6f7a6d6d1745ec549336714d81",
"manufacturer-count-filter.key": "d4209d6f7a6d6d1745ec549336714d81"
},
"doc_count": 7
}
]
},
"bool-reduced": {
"doc_count": 10,
"bool-reduced": {
"value": 10
}
},
"width": {
"count": 60,
"min": 250.0,
"max": 5000.0,
"avg": 1867.5,
"sum": 112050.0
},
"width-stats": {
"doc_count": 60,
"width-stats": {
"count": 60,
"min": 250.0,
"max": 5000.0,
"avg": 1867.5,
"sum": 112050.0
}
},
"height": {
"count": 76,
"min": 650.0,
"max": 3000.0,
"avg": 1885.5263157894738,
"sum": 143300.0
},
"height-stats": {
"doc_count": 76,
"height-stats": {
"count": 76,
"min": 650.0,
"max": 3000.0,
"avg": 1885.5263157894738,
"sum": 143300.0
}
},
"tiefe": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Sonstige Trennwandsysteme",
"multi-typModel.key": "Sonstige Trennwandsysteme"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Lager- und Maschinentrennwandsysteme",
"multi-typModel.key": "Lager- und Maschinentrennwandsysteme"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Lager-Trennwandsysteme",
"multi-typModel.key": "Lager-Trennwandsysteme"
},
"doc_count": 76
},
{
"key": {
"multi-typModel.sorting": "Sonstige Trennwandsysteme",
"multi-typModel.key": "Sonstige Trennwandsysteme"
},
"doc_count": 7
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 1018 Zinkgelb",
"multi-farbe.key": "RAL 1018 Zinkgelb"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "RAL 1018 zinkgelb",
"multi-farbe.key": "RAL 1018 zinkgelb"
},
"doc_count": 15
},
{
"key": {
"multi-farbe.sorting": "RAL 7037 Staubgrau",
"multi-farbe.key": "RAL 7037 Staubgrau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "RAL 7037 staubgrau",
"multi-farbe.key": "RAL 7037 staubgrau"
},
"doc_count": 49
},
{
"key": {
"multi-farbe.sorting": "RAL 9005 Tiefschwarz",
"multi-farbe.key": "RAL 9005 Tiefschwarz"
},
"doc_count": 9
},
{
"key": {
"multi-farbe.sorting": "RAL 9005 tiefschwarz",
"multi-farbe.key": "RAL 9005 tiefschwarz"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 3
}
]
},
"multi-ausfuehrungTrennwandelement": {
"after_key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Wandelement"
},
"buckets": [
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs und Endpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs und Endpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs- und Endpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs- und Endpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs-\/End-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs-\/End-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Doppelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Doppelt\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Einzelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Einzelt\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Schiebet\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Schiebet\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Ausgabeelement mit Ausgabetisch",
"multi-ausfuehrungTrennwandelement.key": "Ausgabeelement mit Ausgabetisch"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Doppel-Fl\u00fcgeltor",
"multi-ausfuehrungTrennwandelement.key": "Doppel-Fl\u00fcgeltor"
},
"doc_count": 8
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Doppel-Fl\u00fcgelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Doppel-Fl\u00fcgelt\u00fcr"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Eck-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Eck-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Eckpfosten",
"multi-ausfuehrungTrennwandelement.key": "Eckpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Falttor",
"multi-ausfuehrungTrennwandelement.key": "Falttor"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Fluegeltuer",
"multi-ausfuehrungTrennwandelement.key": "Fluegeltuer"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Fl\u00fcgelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Fl\u00fcgelt\u00fcr"
},
"doc_count": 3
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Freitragendes Schiebetor",
"multi-ausfuehrungTrennwandelement.key": "Freitragendes Schiebetor"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Klinkengriff f\u00fcr Schiebet\u00fcren, abschlie\u00dfbar",
"multi-ausfuehrungTrennwandelement.key": "Klinkengriff f\u00fcr Schiebet\u00fcren, abschlie\u00dfbar"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Mittel-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Mittel-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Mittelpfosten",
"multi-ausfuehrungTrennwandelement.key": "Mittelpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Radsatz",
"multi-ausfuehrungTrennwandelement.key": "Radsatz"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Schiebetuer",
"multi-ausfuehrungTrennwandelement.key": "Schiebetuer"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Schiebet\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Schiebet\u00fcr"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Sicherheitsschalter f\u00fcr Einzel- und Doppel-Fl\u00fcgelt\u00fcren",
"multi-ausfuehrungTrennwandelement.key": "Sicherheitsschalter f\u00fcr Einzel- und Doppel-Fl\u00fcgelt\u00fcren"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Sicherheitsschalter f\u00fcr Schiebet\u00fcren",
"multi-ausfuehrungTrennwandelement.key": "Sicherheitsschalter f\u00fcr Schiebet\u00fcren"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Stellfu\u00df",
"multi-ausfuehrungTrennwandelement.key": "Stellfu\u00df"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "T-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "T-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "T-Pfosten",
"multi-ausfuehrungTrennwandelement.key": "T-Pfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Aufsatzelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Aufsatzelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Eck-Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Eck-Wandelement"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Eckelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Eckelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Element",
"multi-ausfuehrungTrennwandelement.key": "Vario-Element"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Wandelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandanschlussprofil",
"multi-ausfuehrungTrennwandelement.key": "Wandanschlussprofil"
},
"doc_count": 3
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Wandelement"
},
"doc_count": 13
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "4616606d5a8590d8c1d305d50dce2f73",
"doc_count": 82
},
{
"key": "d4209d6f7a6d6d1745ec549336714d81",
"doc_count": 7
},
{
"key": "370f952a6a12b228a3e6113f77b76902",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|