| 1 |
19.64 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":"dd97f75c4a294d07593ae14c7b5a9095"}},{"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": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 930,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "a7461791cb5fc07f849856825b2394de",
"_score": 1100.0,
"_source": {
"id": "a7461791cb5fc07f849856825b2394de",
"autoIncrement": 139528.0
},
"fields": {
"displayGroup": [
"fdd897ac73cc68dce1a934336b6d65f2"
]
},
"sort": [
0,
1100.0,
0,
139528,
"a7461791cb5fc07f849856825b2394de"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c686c677e2bf7e06a54bc97c5a03bb0d",
"_score": 1100.0,
"_source": {
"id": "c686c677e2bf7e06a54bc97c5a03bb0d",
"autoIncrement": 139527.0
},
"fields": {
"displayGroup": [
"c39aceea15ff0b40f15c2f9f77ae6fd2"
]
},
"sort": [
0,
1100.0,
0,
139527,
"c686c677e2bf7e06a54bc97c5a03bb0d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5d83d54b89da52776ae15d45fc7312e5",
"_score": 1100.0,
"_source": {
"id": "5d83d54b89da52776ae15d45fc7312e5",
"autoIncrement": 139526.0
},
"fields": {
"displayGroup": [
"da81b2d791103eaf3530e1045e56cbd4"
]
},
"sort": [
0,
1100.0,
0,
139526,
"5d83d54b89da52776ae15d45fc7312e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b50885d1bc10d971061fc8c950216ecd",
"_score": 1100.0,
"_source": {
"id": "b50885d1bc10d971061fc8c950216ecd",
"autoIncrement": 139525.0
},
"fields": {
"displayGroup": [
"8772db3b8c61c1208c37dbebe4f508ab"
]
},
"sort": [
0,
1100.0,
0,
139525,
"b50885d1bc10d971061fc8c950216ecd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8fd549004fd5753ae42d3623a1f3550e",
"_score": 1100.0,
"_source": {
"id": "8fd549004fd5753ae42d3623a1f3550e",
"autoIncrement": 139524.0
},
"fields": {
"displayGroup": [
"64c5b3f3b44f2f588d2ffedc62569e99"
]
},
"sort": [
0,
1100.0,
0,
139524,
"8fd549004fd5753ae42d3623a1f3550e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c0d514a70ac96d6a9a987f2b4931ab1",
"_score": 1100.0,
"_source": {
"id": "2c0d514a70ac96d6a9a987f2b4931ab1",
"autoIncrement": 139523.0
},
"fields": {
"displayGroup": [
"f119afc0bb6290618b72fdef4eb75909"
]
},
"sort": [
0,
1100.0,
0,
139523,
"2c0d514a70ac96d6a9a987f2b4931ab1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f1a34d378b36886e2ab1f904836935de",
"_score": 1100.0,
"_source": {
"id": "f1a34d378b36886e2ab1f904836935de",
"autoIncrement": 139522.0
},
"fields": {
"displayGroup": [
"d0bd30631831f96bb1f1295df5b0f57a"
]
},
"sort": [
0,
1100.0,
0,
139522,
"f1a34d378b36886e2ab1f904836935de"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eb5da0e84713c8aa02954617bb23feea",
"_score": 1100.0,
"_source": {
"id": "eb5da0e84713c8aa02954617bb23feea",
"autoIncrement": 139521.0
},
"fields": {
"displayGroup": [
"7ba6966b3115dc17f9a7d608ad54f975"
]
},
"sort": [
0,
1100.0,
0,
139521,
"eb5da0e84713c8aa02954617bb23feea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c38f8f4d8e4f3bb4530c6ab6458a3881",
"_score": 1100.0,
"_source": {
"id": "c38f8f4d8e4f3bb4530c6ab6458a3881",
"autoIncrement": 139475.0
},
"fields": {
"displayGroup": [
"b9d856a3b4a3ff68b0fc09991c9865da"
]
},
"sort": [
0,
1100.0,
0,
139475,
"c38f8f4d8e4f3bb4530c6ab6458a3881"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bb1fa78d17e32814044c95982ccb00e0",
"_score": 1100.0,
"_source": {
"id": "bb1fa78d17e32814044c95982ccb00e0",
"autoIncrement": 139473.0
},
"fields": {
"displayGroup": [
"b600be6065223caa865e8b1d73546a99"
]
},
"sort": [
0,
1100.0,
0,
139473,
"bb1fa78d17e32814044c95982ccb00e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ea5d59bf1562b85e85d500a8d786b31",
"_score": 1100.0,
"_source": {
"id": "9ea5d59bf1562b85e85d500a8d786b31",
"autoIncrement": 139366.0
},
"fields": {
"displayGroup": [
"2e1f1a2aee2ea4a0663357973a7d627b"
]
},
"sort": [
0,
1100.0,
0,
139366,
"9ea5d59bf1562b85e85d500a8d786b31"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9689bc1a1518415b9bdbed967cad5ebb",
"_score": 1100.0,
"_source": {
"id": "9689bc1a1518415b9bdbed967cad5ebb",
"autoIncrement": 139365.0
},
"fields": {
"displayGroup": [
"e15857f8ae43cb373b5550e0b54db1a3"
]
},
"sort": [
0,
1100.0,
0,
139365,
"9689bc1a1518415b9bdbed967cad5ebb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d86a94a727b6b3c0ac88c81df9031371",
"_score": 1100.0,
"_source": {
"id": "d86a94a727b6b3c0ac88c81df9031371",
"autoIncrement": 139361.0
},
"fields": {
"displayGroup": [
"4ea191de693e083a39b2278ac1984fb6"
]
},
"sort": [
0,
1100.0,
0,
139361,
"d86a94a727b6b3c0ac88c81df9031371"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f0b3936978bc6e7ee9e0628137398aa",
"_score": 1100.0,
"_source": {
"id": "4f0b3936978bc6e7ee9e0628137398aa",
"autoIncrement": 139360.0
},
"fields": {
"displayGroup": [
"a7d4c47b96f49fd5dfffabb7402dfeb8"
]
},
"sort": [
0,
1100.0,
0,
139360,
"4f0b3936978bc6e7ee9e0628137398aa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5dbbb2e3e1d85238ec120b6c7f173246",
"_score": 1100.0,
"_source": {
"id": "5dbbb2e3e1d85238ec120b6c7f173246",
"autoIncrement": 139359.0
},
"fields": {
"displayGroup": [
"da028cc1edec2922805024b22cff78cf"
]
},
"sort": [
0,
1100.0,
0,
139359,
"5dbbb2e3e1d85238ec120b6c7f173246"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff7afcfe1b3bdd0f1ac4df676a22e934",
"_score": 1100.0,
"_source": {
"id": "ff7afcfe1b3bdd0f1ac4df676a22e934",
"autoIncrement": 139357.0
},
"fields": {
"displayGroup": [
"c88aa4fdf8002562088d41c79bfeef70"
]
},
"sort": [
0,
1100.0,
0,
139357,
"ff7afcfe1b3bdd0f1ac4df676a22e934"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "970cd23d19ed4a0d037513da18949e78",
"_score": 1100.0,
"_source": {
"id": "970cd23d19ed4a0d037513da18949e78",
"autoIncrement": 139356.0
},
"fields": {
"displayGroup": [
"377101957a81a41793dade8d49bd51f9"
]
},
"sort": [
0,
1100.0,
0,
139356,
"970cd23d19ed4a0d037513da18949e78"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ba207ed1b498a17868d95fb215cbab9b",
"_score": 1100.0,
"_source": {
"id": "ba207ed1b498a17868d95fb215cbab9b",
"autoIncrement": 139355.0
},
"fields": {
"displayGroup": [
"25f35c972f2862ea10f2266331dde605"
]
},
"sort": [
0,
1100.0,
0,
139355,
"ba207ed1b498a17868d95fb215cbab9b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "532e2ae6c4c15cb743efb0964efa7bd0",
"_score": 1100.0,
"_source": {
"id": "532e2ae6c4c15cb743efb0964efa7bd0",
"autoIncrement": 139354.0
},
"fields": {
"displayGroup": [
"81f76006073f294d3912f793ae420b22"
]
},
"sort": [
0,
1100.0,
0,
139354,
"532e2ae6c4c15cb743efb0964efa7bd0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "17e56f427ab7fd796c9fb410afd10e04",
"_score": 1100.0,
"_source": {
"id": "17e56f427ab7fd796c9fb410afd10e04",
"autoIncrement": 139352.0
},
"fields": {
"displayGroup": [
"4f280d937f32a8cf7a19a80022741abb"
]
},
"sort": [
0,
1100.0,
0,
139352,
"17e56f427ab7fd796c9fb410afd10e04"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b04106a17fdf094922f20025af0561cd",
"_score": 1100.0,
"_source": {
"id": "b04106a17fdf094922f20025af0561cd",
"autoIncrement": 139351.0
},
"fields": {
"displayGroup": [
"716fbf70e7558204b3fa6e2b25f64d16"
]
},
"sort": [
0,
1100.0,
0,
139351,
"b04106a17fdf094922f20025af0561cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cb8855a7b2894cd5282de265cdd8fffd",
"_score": 1100.0,
"_source": {
"id": "cb8855a7b2894cd5282de265cdd8fffd",
"autoIncrement": 139350.0
},
"fields": {
"displayGroup": [
"d1a0cb0527476d4eca9731c37f4947b4"
]
},
"sort": [
0,
1100.0,
0,
139350,
"cb8855a7b2894cd5282de265cdd8fffd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b694d1610d132bdd0f24abd6920b5424",
"_score": 1100.0,
"_source": {
"id": "b694d1610d132bdd0f24abd6920b5424",
"autoIncrement": 139349.0
},
"fields": {
"displayGroup": [
"a085794bdb7cab53bbc7b155fbd88ced"
]
},
"sort": [
0,
1100.0,
0,
139349,
"b694d1610d132bdd0f24abd6920b5424"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c6b4fa58dc3cc2123e76010c22a5a66b",
"_score": 1100.0,
"_source": {
"id": "c6b4fa58dc3cc2123e76010c22a5a66b",
"autoIncrement": 139347.0
},
"fields": {
"displayGroup": [
"946ac9bca9e3b1c52298ae7755ad854c"
]
},
"sort": [
0,
1100.0,
0,
139347,
"c6b4fa58dc3cc2123e76010c22a5a66b"
]
}
]
},
"aggregations": {
"total-count": {
"value": 930
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.37 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":"dd97f75c4a294d07593ae14c7b5a9095"}},{"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-traglastKragarm":{"composite":{"sources":[{"multi-traglastKragarm.sorting":{"terms":{"field":"attribute_traglastKragarm","order":"ASC"}}},{"multi-traglastKragarm.key":{"terms":{"field":"attribute_traglastKragarm"}}}],"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": "dd97f75c4a294d07593ae14c7b5a9095"
}
},
{
"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-traglastKragarm": {
"composite": {
"sources": [
{
"multi-traglastKragarm.sorting": {
"terms": {
"field": "attribute_traglastKragarm",
"order": "ASC"
}
}
},
{
"multi-traglastKragarm.key": {
"terms": {
"field": "attribute_traglastKragarm"
}
}
}
],
"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": 930,
"min": 2.0,
"max": 10384.0,
"avg": 2620.9079462365594,
"sum": 2437444.39
},
"rating-exists": {
"doc_count": 930,
"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": 930
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kragarmregale",
"multi-typModel.key": "Zubeh\u00f6r Kragarmregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Kragarmregal KARL light",
"multi-typModel.key": "Kragarmregal KARL light"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Kragarmregal KARL basic",
"multi-typModel.key": "Kragarmregal KARL basic"
},
"doc_count": 864
},
{
"key": {
"multi-typModel.sorting": "Kragarmregal KARL heavy",
"multi-typModel.key": "Kragarmregal KARL heavy"
},
"doc_count": 48
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kragarmregale",
"multi-typModel.key": "Zubeh\u00f6r Kragarmregale"
},
"doc_count": 14
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 7591.0,
"multi-width.key": 7591.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 108
},
{
"key": {
"multi-width.sorting": 1064.0,
"multi-width.key": 1064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1280.0,
"multi-width.key": 1280.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 1305.0,
"multi-width.key": 1305.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1344.0,
"multi-width.key": 1344.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 1591.0,
"multi-width.key": 1591.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 2064.0,
"multi-width.key": 2064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 2624.0,
"multi-width.key": 2624.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 3064.0,
"multi-width.key": 3064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 3091.0,
"multi-width.key": 3091.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 3904.0,
"multi-width.key": 3904.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 4064.0,
"multi-width.key": 4064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 4591.0,
"multi-width.key": 4591.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 5064.0,
"multi-width.key": 5064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 5184.0,
"multi-width.key": 5184.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 6091.0,
"multi-width.key": 6091.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 6464.0,
"multi-width.key": 6464.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 7591.0,
"multi-width.key": 7591.0
},
"doc_count": 8
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 4000.0,
"multi-height.key": 4000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 292
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 288
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 288
},
{
"key": {
"multi-height.sorting": 3500.0,
"multi-height.key": 3500.0
},
"doc_count": 24
},
{
"key": {
"multi-height.sorting": 4000.0,
"multi-height.key": 4000.0
},
"doc_count": 24
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 2580.0,
"multi-tiefe.key": 2580.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 520.0,
"multi-tiefe.key": 520.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 620.0,
"multi-tiefe.key": 620.0
},
"doc_count": 73
},
{
"key": {
"multi-tiefe.sorting": 720.0,
"multi-tiefe.key": 720.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 920.0,
"multi-tiefe.key": 920.0
},
"doc_count": 144
},
{
"key": {
"multi-tiefe.sorting": 1120.0,
"multi-tiefe.key": 1120.0
},
"doc_count": 144
},
{
"key": {
"multi-tiefe.sorting": 1200.0,
"multi-tiefe.key": 1200.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 1240.0,
"multi-tiefe.key": 1240.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 1320.0,
"multi-tiefe.key": 1320.0
},
"doc_count": 144
},
{
"key": {
"multi-tiefe.sorting": 1380.0,
"multi-tiefe.key": 1380.0
},
"doc_count": 24
},
{
"key": {
"multi-tiefe.sorting": 1720.0,
"multi-tiefe.key": 1720.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 2120.0,
"multi-tiefe.key": 2120.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 2520.0,
"multi-tiefe.key": 2520.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 2580.0,
"multi-tiefe.key": 2580.0
},
"doc_count": 24
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Zubeh\u00f6r",
"multi-regalausfuehrung.key": "Zubeh\u00f6r"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 154
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 2
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundregal",
"multi-regalausfuehrung.key": "Grundregal"
},
"doc_count": 152
},
{
"key": {
"multi-regalausfuehrung.sorting": "Regalreihe",
"multi-regalausfuehrung.key": "Regalreihe"
},
"doc_count": 608
},
{
"key": {
"multi-regalausfuehrung.sorting": "Zubeh\u00f6r",
"multi-regalausfuehrung.key": "Zubeh\u00f6r"
},
"doc_count": 1
}
]
},
"multi-traglastKragarm": {
"after_key": {
"multi-traglastKragarm.sorting": 1100.0,
"multi-traglastKragarm.key": 1100.0
},
"buckets": [
{
"key": {
"multi-traglastKragarm.sorting": 200.0,
"multi-traglastKragarm.key": 200.0
},
"doc_count": 4
},
{
"key": {
"multi-traglastKragarm.sorting": 370.0,
"multi-traglastKragarm.key": 370.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 450.0,
"multi-traglastKragarm.key": 450.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 550.0,
"multi-traglastKragarm.key": 550.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 730.0,
"multi-traglastKragarm.key": 730.0
},
"doc_count": 104
},
{
"key": {
"multi-traglastKragarm.sorting": 740.0,
"multi-traglastKragarm.key": 740.0
},
"doc_count": 40
},
{
"key": {
"multi-traglastKragarm.sorting": 800.0,
"multi-traglastKragarm.key": 800.0
},
"doc_count": 49
},
{
"key": {
"multi-traglastKragarm.sorting": 870.0,
"multi-traglastKragarm.key": 870.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 1100.0,
"multi-traglastKragarm.key": 1100.0
},
"doc_count": 144
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 930
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|