| 1 |
17.30 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":"e5ef510b214a7c8cee8aa2d173c070b4"}},{"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": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 437,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "59bfa398bd8da5f29a39813ca13a23ae",
"_score": 1100.0,
"_source": {
"id": "59bfa398bd8da5f29a39813ca13a23ae",
"autoIncrement": 114863.0
},
"fields": {
"displayGroup": [
"71f8d2ea6fca352677117a9a99e1b195"
]
},
"sort": [
0,
1100.0,
0,
114863,
"59bfa398bd8da5f29a39813ca13a23ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e0432fb4cc1dc831f1422dc73f8c9bce",
"_score": 1100.0,
"_source": {
"id": "e0432fb4cc1dc831f1422dc73f8c9bce",
"autoIncrement": 114862.0
},
"fields": {
"displayGroup": [
"182303b0a47fdbe9588da317ac77d234"
]
},
"sort": [
0,
1100.0,
0,
114862,
"e0432fb4cc1dc831f1422dc73f8c9bce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37601bb4ed9af41cf80a9166f1ad3b49",
"_score": 1100.0,
"_source": {
"id": "37601bb4ed9af41cf80a9166f1ad3b49",
"autoIncrement": 114861.0
},
"fields": {
"displayGroup": [
"6159ace452c858b35d4088d8192f4dba"
]
},
"sort": [
0,
1100.0,
0,
114861,
"37601bb4ed9af41cf80a9166f1ad3b49"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "87dbee6e0271c54fae71f0c1abfac1b9",
"_score": 1100.0,
"_source": {
"id": "87dbee6e0271c54fae71f0c1abfac1b9",
"autoIncrement": 114860.0
},
"fields": {
"displayGroup": [
"9b7266098ac9c4fc52995029ff4d0719"
]
},
"sort": [
0,
1100.0,
0,
114860,
"87dbee6e0271c54fae71f0c1abfac1b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "463416a8ed6945b173ef2dd6edc0de3c",
"_score": 1100.0,
"_source": {
"id": "463416a8ed6945b173ef2dd6edc0de3c",
"autoIncrement": 114859.0
},
"fields": {
"displayGroup": [
"34468410cc346093acf26e302fc83f6a"
]
},
"sort": [
0,
1100.0,
0,
114859,
"463416a8ed6945b173ef2dd6edc0de3c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c832c39acdeda4e2b02e1478bbb40367",
"_score": 1100.0,
"_source": {
"id": "c832c39acdeda4e2b02e1478bbb40367",
"autoIncrement": 114858.0
},
"fields": {
"displayGroup": [
"3ca2df54df1270458fe8a6b4e4360e2d"
]
},
"sort": [
0,
1100.0,
0,
114858,
"c832c39acdeda4e2b02e1478bbb40367"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "78d2f583d8623333761d4630606552e6",
"_score": 1100.0,
"_source": {
"id": "78d2f583d8623333761d4630606552e6",
"autoIncrement": 114857.0
},
"fields": {
"displayGroup": [
"e94a7d504825755c1af31fa9757156b8"
]
},
"sort": [
0,
1100.0,
0,
114857,
"78d2f583d8623333761d4630606552e6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "140b85c411feed0bd3a8cfa764722756",
"_score": 1100.0,
"_source": {
"id": "140b85c411feed0bd3a8cfa764722756",
"autoIncrement": 114856.0
},
"fields": {
"displayGroup": [
"f304e42e353c25df88814dc2e356fd66"
]
},
"sort": [
0,
1100.0,
0,
114856,
"140b85c411feed0bd3a8cfa764722756"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "be4f2ba281df75b780301140fa45b92e",
"_score": 1100.0,
"_source": {
"id": "be4f2ba281df75b780301140fa45b92e",
"autoIncrement": 114855.0
},
"fields": {
"displayGroup": [
"40cd6e821bd3f0054e264322887c3c2f"
]
},
"sort": [
0,
1100.0,
0,
114855,
"be4f2ba281df75b780301140fa45b92e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5aee4723a6a6c2f027aed84fcf773356",
"_score": 1100.0,
"_source": {
"id": "5aee4723a6a6c2f027aed84fcf773356",
"autoIncrement": 114854.0
},
"fields": {
"displayGroup": [
"0c3d7f584f741fd47c18b8dc66ca7052"
]
},
"sort": [
0,
1100.0,
0,
114854,
"5aee4723a6a6c2f027aed84fcf773356"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1c8cf8ec9554cdc7c7035b0b0d230181",
"_score": 1100.0,
"_source": {
"id": "1c8cf8ec9554cdc7c7035b0b0d230181",
"autoIncrement": 114853.0
},
"fields": {
"displayGroup": [
"02e7189819a3f245f2e8456d7b62d358"
]
},
"sort": [
0,
1100.0,
0,
114853,
"1c8cf8ec9554cdc7c7035b0b0d230181"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dd86be2acef2844468e4756c0ad1ae2d",
"_score": 1100.0,
"_source": {
"id": "dd86be2acef2844468e4756c0ad1ae2d",
"autoIncrement": 114852.0
},
"fields": {
"displayGroup": [
"7a6c88a205e7f16c76f5ca78a71de8ba"
]
},
"sort": [
0,
1100.0,
0,
114852,
"dd86be2acef2844468e4756c0ad1ae2d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "090c2ae63ef9fc8e3aaa523039a63bdd",
"_score": 1100.0,
"_source": {
"id": "090c2ae63ef9fc8e3aaa523039a63bdd",
"autoIncrement": 114851.0
},
"fields": {
"displayGroup": [
"770642f0558983d9b4681b10a425dbef"
]
},
"sort": [
0,
1100.0,
0,
114851,
"090c2ae63ef9fc8e3aaa523039a63bdd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "92828f188037867a17a0933237b93493",
"_score": 1100.0,
"_source": {
"id": "92828f188037867a17a0933237b93493",
"autoIncrement": 114850.0
},
"fields": {
"displayGroup": [
"282929c4ccad0b492f0af137f461cebb"
]
},
"sort": [
0,
1100.0,
0,
114850,
"92828f188037867a17a0933237b93493"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "810af8f169918b559ca3e3207dee226d",
"_score": 1100.0,
"_source": {
"id": "810af8f169918b559ca3e3207dee226d",
"autoIncrement": 114849.0
},
"fields": {
"displayGroup": [
"6f82c3d4c6461365b3e537d58aec94a4"
]
},
"sort": [
0,
1100.0,
0,
114849,
"810af8f169918b559ca3e3207dee226d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9f8d3b3540b0bac2f9e4115d12e7e426",
"_score": 1100.0,
"_source": {
"id": "9f8d3b3540b0bac2f9e4115d12e7e426",
"autoIncrement": 114848.0
},
"fields": {
"displayGroup": [
"5e9f6521840f02827ec14b1b22d263d0"
]
},
"sort": [
0,
1100.0,
0,
114848,
"9f8d3b3540b0bac2f9e4115d12e7e426"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0fcea7e7ff7f3f68250ff1534a4d2a7",
"_score": 1100.0,
"_source": {
"id": "b0fcea7e7ff7f3f68250ff1534a4d2a7",
"autoIncrement": 114847.0
},
"fields": {
"displayGroup": [
"ab8428530559f32983b959d45f97660c"
]
},
"sort": [
0,
1100.0,
0,
114847,
"b0fcea7e7ff7f3f68250ff1534a4d2a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c8637afa7011e9299469a3e3bb80535",
"_score": 1100.0,
"_source": {
"id": "4c8637afa7011e9299469a3e3bb80535",
"autoIncrement": 114846.0
},
"fields": {
"displayGroup": [
"10da8551e414722a250b97f2f5ba4bbe"
]
},
"sort": [
0,
1100.0,
0,
114846,
"4c8637afa7011e9299469a3e3bb80535"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "42c6ed74d2663cb693d0adf56959ec39",
"_score": 1100.0,
"_source": {
"id": "42c6ed74d2663cb693d0adf56959ec39",
"autoIncrement": 114845.0
},
"fields": {
"displayGroup": [
"6d76e25de1dd64c8913858fdca0f1628"
]
},
"sort": [
0,
1100.0,
0,
114845,
"42c6ed74d2663cb693d0adf56959ec39"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a632d49afd7c4486b37f428885578e04",
"_score": 1100.0,
"_source": {
"id": "a632d49afd7c4486b37f428885578e04",
"autoIncrement": 114844.0
},
"fields": {
"displayGroup": [
"ee1da0015559daf6c1f05aff3968bd50"
]
},
"sort": [
0,
1100.0,
0,
114844,
"a632d49afd7c4486b37f428885578e04"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "20414d76f7ef647391d450e7b9cb15fb",
"_score": 1100.0,
"_source": {
"id": "20414d76f7ef647391d450e7b9cb15fb",
"autoIncrement": 114843.0
},
"fields": {
"displayGroup": [
"9c5de13ab91bacad8fcebd65782341ae"
]
},
"sort": [
0,
1100.0,
0,
114843,
"20414d76f7ef647391d450e7b9cb15fb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cfc614988eab373f7a0b3aad560489f1",
"_score": 1100.0,
"_source": {
"id": "cfc614988eab373f7a0b3aad560489f1",
"autoIncrement": 114842.0
},
"fields": {
"displayGroup": [
"9053e02727b6c7ca5cf796366ffa1e6b"
]
},
"sort": [
0,
1100.0,
0,
114842,
"cfc614988eab373f7a0b3aad560489f1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8237675092b697820b5328374ac08ce6",
"_score": 1100.0,
"_source": {
"id": "8237675092b697820b5328374ac08ce6",
"autoIncrement": 114841.0
},
"fields": {
"displayGroup": [
"fd5fa6df2a3dec073f0654c50a4eff57"
]
},
"sort": [
0,
1100.0,
0,
114841,
"8237675092b697820b5328374ac08ce6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e76f4045775fadb898bcee90827e992",
"_score": 1100.0,
"_source": {
"id": "9e76f4045775fadb898bcee90827e992",
"autoIncrement": 114840.0
},
"fields": {
"displayGroup": [
"e293f34429ed43aefcb7c83386fa38e1"
]
},
"sort": [
0,
1100.0,
0,
114840,
"9e76f4045775fadb898bcee90827e992"
]
}
]
},
"aggregations": {
"total-count": {
"value": 437
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.21 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":"e5ef510b214a7c8cee8aa2d173c070b4"}},{"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"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"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": "e5ef510b214a7c8cee8aa2d173c070b4"
}
},
{
"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"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"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": 437,
"min": 38.6,
"max": 2379.0,
"avg": 847.8988558352403,
"sum": 370531.8
},
"rating-exists": {
"doc_count": 437,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 329
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Grundfeld",
"multi-typModel.key": "Weitspannregale Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 61
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 1785.0,
"multi-width.key": 1785.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 1850.0,
"multi-width.key": 1850.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2140.0,
"multi-width.key": 2140.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 2250.0,
"multi-width.key": 2250.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 2500.0,
"multi-width.key": 2500.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 4398.0,
"multi-width.key": 4398.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 6623.0,
"multi-width.key": 6623.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 8848.0,
"multi-width.key": 8848.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 140
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 134
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 87
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 42
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 42
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 123
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 123
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 79
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 4
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 178
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 116
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"doc_count": 54
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 329
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|