| 1 |
18.41 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":48,"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": "e3985a62f875087ad18eb902bdbf1b9e",
"_score": 1100.0,
"_source": {
"id": "e3985a62f875087ad18eb902bdbf1b9e",
"autoIncrement": 114959.0
},
"fields": {
"displayGroup": [
"062111b321217675fd978c4a129ae8c1"
]
},
"sort": [
0,
1100.0,
0,
114959,
"e3985a62f875087ad18eb902bdbf1b9e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3d483c2617885a7b0b0da97768c85b06",
"_score": 1100.0,
"_source": {
"id": "3d483c2617885a7b0b0da97768c85b06",
"autoIncrement": 114958.0
},
"fields": {
"displayGroup": [
"10c13bc13adfef03e864e55141ea4d17"
]
},
"sort": [
0,
1100.0,
0,
114958,
"3d483c2617885a7b0b0da97768c85b06"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "33349e3f007aef2e9a3731edb50b7635",
"_score": 1100.0,
"_source": {
"id": "33349e3f007aef2e9a3731edb50b7635",
"autoIncrement": 114957.0
},
"fields": {
"displayGroup": [
"a4257bb78148bbeb5fa80d730ce36b67"
]
},
"sort": [
0,
1100.0,
0,
114957,
"33349e3f007aef2e9a3731edb50b7635"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b9fbc64af2a8911845ea1a713cf35446",
"_score": 1100.0,
"_source": {
"id": "b9fbc64af2a8911845ea1a713cf35446",
"autoIncrement": 114956.0
},
"fields": {
"displayGroup": [
"cde92af7855dba3acb231cfce97284a4"
]
},
"sort": [
0,
1100.0,
0,
114956,
"b9fbc64af2a8911845ea1a713cf35446"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a41309d3a666352060b92eec45ade415",
"_score": 1100.0,
"_source": {
"id": "a41309d3a666352060b92eec45ade415",
"autoIncrement": 114955.0
},
"fields": {
"displayGroup": [
"ca055d11548f6909d8ece3d29b5d96b4"
]
},
"sort": [
0,
1100.0,
0,
114955,
"a41309d3a666352060b92eec45ade415"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fbc581f9228e5278820610f26805d7b6",
"_score": 1100.0,
"_source": {
"id": "fbc581f9228e5278820610f26805d7b6",
"autoIncrement": 114954.0
},
"fields": {
"displayGroup": [
"7939c209a2f69842c7e60a7bd3a8c402"
]
},
"sort": [
0,
1100.0,
0,
114954,
"fbc581f9228e5278820610f26805d7b6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "439346782420f6d366f1cf98a25431f8",
"_score": 1100.0,
"_source": {
"id": "439346782420f6d366f1cf98a25431f8",
"autoIncrement": 114953.0
},
"fields": {
"displayGroup": [
"17d91bf6e68f51135a53971e9e7fa6c3"
]
},
"sort": [
0,
1100.0,
0,
114953,
"439346782420f6d366f1cf98a25431f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3073a133ff6145a6f3ddae8d80e0d21f",
"_score": 1100.0,
"_source": {
"id": "3073a133ff6145a6f3ddae8d80e0d21f",
"autoIncrement": 114952.0
},
"fields": {
"displayGroup": [
"c1577cb826e0740c9bbb74913894ee33"
]
},
"sort": [
0,
1100.0,
0,
114952,
"3073a133ff6145a6f3ddae8d80e0d21f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d10fc34f79d85d9de5035266d9738542",
"_score": 1100.0,
"_source": {
"id": "d10fc34f79d85d9de5035266d9738542",
"autoIncrement": 114951.0
},
"fields": {
"displayGroup": [
"425af0babfa1b76c82413dba783a9502"
]
},
"sort": [
0,
1100.0,
0,
114951,
"d10fc34f79d85d9de5035266d9738542"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b6c99495339ceed82c95902cd0a69046",
"_score": 1100.0,
"_source": {
"id": "b6c99495339ceed82c95902cd0a69046",
"autoIncrement": 114950.0
},
"fields": {
"displayGroup": [
"934dbb6774da12f445cd828b4f64f37f"
]
},
"sort": [
0,
1100.0,
0,
114950,
"b6c99495339ceed82c95902cd0a69046"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1200be053f422b4fbc3f23f7764fecc3",
"_score": 1100.0,
"_source": {
"id": "1200be053f422b4fbc3f23f7764fecc3",
"autoIncrement": 114949.0
},
"fields": {
"displayGroup": [
"8733d302955f436a9f07cf971b77e62b"
]
},
"sort": [
0,
1100.0,
0,
114949,
"1200be053f422b4fbc3f23f7764fecc3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9a6adc40c86e0fdea49376c38589ae27",
"_score": 1100.0,
"_source": {
"id": "9a6adc40c86e0fdea49376c38589ae27",
"autoIncrement": 114948.0
},
"fields": {
"displayGroup": [
"acf8144c8be9942f0303635e8ec592d1"
]
},
"sort": [
0,
1100.0,
0,
114948,
"9a6adc40c86e0fdea49376c38589ae27"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1703856c380015ed6d4012f5f7bdd255",
"_score": 1100.0,
"_source": {
"id": "1703856c380015ed6d4012f5f7bdd255",
"autoIncrement": 114947.0
},
"fields": {
"displayGroup": [
"a5997a48a2bbadbe40d1ea5051668b35"
]
},
"sort": [
0,
1100.0,
0,
114947,
"1703856c380015ed6d4012f5f7bdd255"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e044802d1ab973ee54c6e30983b2b7ea",
"_score": 1100.0,
"_source": {
"id": "e044802d1ab973ee54c6e30983b2b7ea",
"autoIncrement": 114946.0
},
"fields": {
"displayGroup": [
"09da1bf242674ff1b3e697524bc70400"
]
},
"sort": [
0,
1100.0,
0,
114946,
"e044802d1ab973ee54c6e30983b2b7ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4e622e90bb4809cbf5665bf18b00ed25",
"_score": 1100.0,
"_source": {
"id": "4e622e90bb4809cbf5665bf18b00ed25",
"autoIncrement": 114945.0
},
"fields": {
"displayGroup": [
"237dfaba9a582806e10b12a63cbb309e"
]
},
"sort": [
0,
1100.0,
0,
114945,
"4e622e90bb4809cbf5665bf18b00ed25"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f8b7429104e8e3ef52f3c591bef09b86",
"_score": 1100.0,
"_source": {
"id": "f8b7429104e8e3ef52f3c591bef09b86",
"autoIncrement": 114944.0
},
"fields": {
"displayGroup": [
"81aa626c7ac985e612da04558d44c182"
]
},
"sort": [
0,
1100.0,
0,
114944,
"f8b7429104e8e3ef52f3c591bef09b86"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8829b5f1a4ae35c969e20c3a495fbe3d",
"_score": 1100.0,
"_source": {
"id": "8829b5f1a4ae35c969e20c3a495fbe3d",
"autoIncrement": 114943.0
},
"fields": {
"displayGroup": [
"07ee1421b403ab8b2946f85340aea198"
]
},
"sort": [
0,
1100.0,
0,
114943,
"8829b5f1a4ae35c969e20c3a495fbe3d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b74094ee941f69c28de0ba810831f08",
"_score": 1100.0,
"_source": {
"id": "9b74094ee941f69c28de0ba810831f08",
"autoIncrement": 114942.0
},
"fields": {
"displayGroup": [
"18c9a549f1014a47ea814a1e12316aaf"
]
},
"sort": [
0,
1100.0,
0,
114942,
"9b74094ee941f69c28de0ba810831f08"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "afef2208cbb08ffdf6a5c23f296bf0b2",
"_score": 1100.0,
"_source": {
"id": "afef2208cbb08ffdf6a5c23f296bf0b2",
"autoIncrement": 114941.0
},
"fields": {
"displayGroup": [
"3e90cc7287050423cbc6e61196714aba"
]
},
"sort": [
0,
1100.0,
0,
114941,
"afef2208cbb08ffdf6a5c23f296bf0b2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2e71133f2df34480fcb075ac9ed775a2",
"_score": 1100.0,
"_source": {
"id": "2e71133f2df34480fcb075ac9ed775a2",
"autoIncrement": 114940.0
},
"fields": {
"displayGroup": [
"28e1c226833ae092b15268b2f5ffd255"
]
},
"sort": [
0,
1100.0,
0,
114940,
"2e71133f2df34480fcb075ac9ed775a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ffe0a27be6dab2e146d42934fa7c67c",
"_score": 1100.0,
"_source": {
"id": "9ffe0a27be6dab2e146d42934fa7c67c",
"autoIncrement": 114939.0
},
"fields": {
"displayGroup": [
"d281f71df3e7cdf6da503cd270d65eba"
]
},
"sort": [
0,
1100.0,
0,
114939,
"9ffe0a27be6dab2e146d42934fa7c67c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f2a54ca1f003192b018d80560a741531",
"_score": 1100.0,
"_source": {
"id": "f2a54ca1f003192b018d80560a741531",
"autoIncrement": 114938.0
},
"fields": {
"displayGroup": [
"7df4734ce8a07e29d98a2a99082422b8"
]
},
"sort": [
0,
1100.0,
0,
114938,
"f2a54ca1f003192b018d80560a741531"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "06d1564424eb4a97a4a417b9d9ebdf39",
"_score": 1100.0,
"_source": {
"id": "06d1564424eb4a97a4a417b9d9ebdf39",
"autoIncrement": 114937.0
},
"fields": {
"displayGroup": [
"c6c4afdffa7d83129b110a218d4da409"
]
},
"sort": [
0,
1100.0,
0,
114937,
"06d1564424eb4a97a4a417b9d9ebdf39"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "498fc94cf711dc0ddbfce8b37f53c042",
"_score": 1100.0,
"_source": {
"id": "498fc94cf711dc0ddbfce8b37f53c042",
"autoIncrement": 114936.0
},
"fields": {
"displayGroup": [
"81abb999da7f5dd434dc1b4dcf52da38"
]
},
"sort": [
0,
1100.0,
0,
114936,
"498fc94cf711dc0ddbfce8b37f53c042"
]
}
]
},
"aggregations": {
"total-count": {
"value": 437
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.87 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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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
|