| 1 |
20.58 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":"29a12453504bafeb353763a17a1a2022"}},{"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":264,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 341,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "937fd500e6746b0fce8f8a7e1731b17f",
"_score": 1100.0,
"_source": {
"id": "937fd500e6746b0fce8f8a7e1731b17f",
"autoIncrement": 118234.0
},
"fields": {
"displayGroup": [
"3517186df9d3f4fd79014a26a5b9453f"
]
},
"sort": [
0,
1100.0,
0,
118234,
"937fd500e6746b0fce8f8a7e1731b17f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8f0e4bda9d87f863fb7796ff5a6de8c4",
"_score": 1100.0,
"_source": {
"id": "8f0e4bda9d87f863fb7796ff5a6de8c4",
"autoIncrement": 118233.0
},
"fields": {
"displayGroup": [
"f04b04d0baa71aa0e1f15cc90ebb9c09"
]
},
"sort": [
0,
1100.0,
0,
118233,
"8f0e4bda9d87f863fb7796ff5a6de8c4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e22403bfe640ff8382734e28f24f739",
"_score": 1100.0,
"_source": {
"id": "5e22403bfe640ff8382734e28f24f739",
"autoIncrement": 118232.0
},
"fields": {
"displayGroup": [
"e8a8f559d051d9f0159e339ab0502f5a"
]
},
"sort": [
0,
1100.0,
0,
118232,
"5e22403bfe640ff8382734e28f24f739"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "babcca6fa586f0e4571c36442292f142",
"_score": 1100.0,
"_source": {
"id": "babcca6fa586f0e4571c36442292f142",
"autoIncrement": 118231.0
},
"fields": {
"displayGroup": [
"2fa0d6f9fca29b85a280148251c54896"
]
},
"sort": [
0,
1100.0,
0,
118231,
"babcca6fa586f0e4571c36442292f142"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "323cfb5344a758a6ddf94463c869a209",
"_score": 1100.0,
"_source": {
"id": "323cfb5344a758a6ddf94463c869a209",
"autoIncrement": 118230.0
},
"fields": {
"displayGroup": [
"32e45524521b6bbd400224d74990247f"
]
},
"sort": [
0,
1100.0,
0,
118230,
"323cfb5344a758a6ddf94463c869a209"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "812e9b447cb6067140f97a62c0aada9a",
"_score": 1100.0,
"_source": {
"id": "812e9b447cb6067140f97a62c0aada9a",
"autoIncrement": 118229.0
},
"fields": {
"displayGroup": [
"d6304132176d2d7b9deb520098dc21fe"
]
},
"sort": [
0,
1100.0,
0,
118229,
"812e9b447cb6067140f97a62c0aada9a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d7970644ff72a581a34c5e4f0685549",
"_score": 1100.0,
"_source": {
"id": "8d7970644ff72a581a34c5e4f0685549",
"autoIncrement": 118228.0
},
"fields": {
"displayGroup": [
"cd4a1b4983d8b6a3d0e50344c0784f76"
]
},
"sort": [
0,
1100.0,
0,
118228,
"8d7970644ff72a581a34c5e4f0685549"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "07b2b0d32f490ab753f4f25a4bcb1b1c",
"_score": 1100.0,
"_source": {
"id": "07b2b0d32f490ab753f4f25a4bcb1b1c",
"autoIncrement": 118227.0
},
"fields": {
"displayGroup": [
"5d8c2d459cebfccf183bfc2a0c31380d"
]
},
"sort": [
0,
1100.0,
0,
118227,
"07b2b0d32f490ab753f4f25a4bcb1b1c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e4024db8c2195660f87e69ed9a0db9be",
"_score": 1100.0,
"_source": {
"id": "e4024db8c2195660f87e69ed9a0db9be",
"autoIncrement": 118226.0
},
"fields": {
"displayGroup": [
"eaaddb509be3aa2f750e593ebf876083"
]
},
"sort": [
0,
1100.0,
0,
118226,
"e4024db8c2195660f87e69ed9a0db9be"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f108d1653d14b9e0180a7d2475e5d8f7",
"_score": 1100.0,
"_source": {
"id": "f108d1653d14b9e0180a7d2475e5d8f7",
"autoIncrement": 118225.0
},
"fields": {
"displayGroup": [
"c68eec110098130fb915d09d531efb1b"
]
},
"sort": [
0,
1100.0,
0,
118225,
"f108d1653d14b9e0180a7d2475e5d8f7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "09fbf38a86e3dca0fea946d255717515",
"_score": 1100.0,
"_source": {
"id": "09fbf38a86e3dca0fea946d255717515",
"autoIncrement": 118224.0
},
"fields": {
"displayGroup": [
"d1450ffddd040670b0d360d965d45d9c"
]
},
"sort": [
0,
1100.0,
0,
118224,
"09fbf38a86e3dca0fea946d255717515"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4ebbc1f697985ce3ac85e7c1ca0b7ef5",
"_score": 1100.0,
"_source": {
"id": "4ebbc1f697985ce3ac85e7c1ca0b7ef5",
"autoIncrement": 118223.0
},
"fields": {
"displayGroup": [
"ab86cd83427a6614bf63193f1b16a7b6"
]
},
"sort": [
0,
1100.0,
0,
118223,
"4ebbc1f697985ce3ac85e7c1ca0b7ef5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "241102b8341356fe4316d0c63940c19a",
"_score": 1100.0,
"_source": {
"id": "241102b8341356fe4316d0c63940c19a",
"autoIncrement": 118222.0
},
"fields": {
"displayGroup": [
"57c4a865f204053da2548e34ce96a1da"
]
},
"sort": [
0,
1100.0,
0,
118222,
"241102b8341356fe4316d0c63940c19a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "edd857314db121cfb827cf66e652563e",
"_score": 1100.0,
"_source": {
"id": "edd857314db121cfb827cf66e652563e",
"autoIncrement": 118221.0
},
"fields": {
"displayGroup": [
"de025a013284d5f58d1261f1c1543aa2"
]
},
"sort": [
0,
1100.0,
0,
118221,
"edd857314db121cfb827cf66e652563e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3dda55d61ae8cd9b9010b2ebdb367de6",
"_score": 1100.0,
"_source": {
"id": "3dda55d61ae8cd9b9010b2ebdb367de6",
"autoIncrement": 118220.0
},
"fields": {
"displayGroup": [
"b48d3e99792f151e719f3c56bc880809"
]
},
"sort": [
0,
1100.0,
0,
118220,
"3dda55d61ae8cd9b9010b2ebdb367de6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c88a58253dd37ac2989c47c3714f6085",
"_score": 1100.0,
"_source": {
"id": "c88a58253dd37ac2989c47c3714f6085",
"autoIncrement": 118219.0
},
"fields": {
"displayGroup": [
"658410d33ebb224963f9a79bcbf18692"
]
},
"sort": [
0,
1100.0,
0,
118219,
"c88a58253dd37ac2989c47c3714f6085"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "80070016ae59b7a93a898eadb7c4d41e",
"_score": 1100.0,
"_source": {
"id": "80070016ae59b7a93a898eadb7c4d41e",
"autoIncrement": 118218.0
},
"fields": {
"displayGroup": [
"978dbafed10cb834a385d6b96e35243a"
]
},
"sort": [
0,
1100.0,
0,
118218,
"80070016ae59b7a93a898eadb7c4d41e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3a6a54c0e9f5ed7c214fe7623bbb831c",
"_score": 1100.0,
"_source": {
"id": "3a6a54c0e9f5ed7c214fe7623bbb831c",
"autoIncrement": 118217.0
},
"fields": {
"displayGroup": [
"857d41c0f60d427aaf3eb36812cde07e"
]
},
"sort": [
0,
1100.0,
0,
118217,
"3a6a54c0e9f5ed7c214fe7623bbb831c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3938a33443e8434636a0a0831e341c64",
"_score": 1100.0,
"_source": {
"id": "3938a33443e8434636a0a0831e341c64",
"autoIncrement": 118216.0
},
"fields": {
"displayGroup": [
"427172d63d647b256b65720f2bb1669e"
]
},
"sort": [
0,
1100.0,
0,
118216,
"3938a33443e8434636a0a0831e341c64"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6adf79f28dd958c9679922471c978765",
"_score": 1100.0,
"_source": {
"id": "6adf79f28dd958c9679922471c978765",
"autoIncrement": 118215.0
},
"fields": {
"displayGroup": [
"9d1d1a175764b7eafef6c240f8aa24d8"
]
},
"sort": [
0,
1100.0,
0,
118215,
"6adf79f28dd958c9679922471c978765"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "11e91624cc39210ac439643cbfa2a934",
"_score": 1100.0,
"_source": {
"id": "11e91624cc39210ac439643cbfa2a934",
"autoIncrement": 118214.0
},
"fields": {
"displayGroup": [
"193234458cf1b67467383a1761f8fdd0"
]
},
"sort": [
0,
1100.0,
0,
118214,
"11e91624cc39210ac439643cbfa2a934"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "12280dbdac966c37d1d08913c5e9e356",
"_score": 1100.0,
"_source": {
"id": "12280dbdac966c37d1d08913c5e9e356",
"autoIncrement": 118213.0
},
"fields": {
"displayGroup": [
"e8cc433c840e6fa0de1bdffc9fd99c8a"
]
},
"sort": [
0,
1100.0,
0,
118213,
"12280dbdac966c37d1d08913c5e9e356"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1be2e2e8570bcd4cf7477e0a5d8a1a8a",
"_score": 1100.0,
"_source": {
"id": "1be2e2e8570bcd4cf7477e0a5d8a1a8a",
"autoIncrement": 118212.0
},
"fields": {
"displayGroup": [
"575f30e006e0c9fac6fee358a0e33fb0"
]
},
"sort": [
0,
1100.0,
0,
118212,
"1be2e2e8570bcd4cf7477e0a5d8a1a8a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "710baad266ab9d05897856bb7a1e5b3f",
"_score": 1100.0,
"_source": {
"id": "710baad266ab9d05897856bb7a1e5b3f",
"autoIncrement": 118211.0
},
"fields": {
"displayGroup": [
"729cd4bca36910078076b30af31d6341"
]
},
"sort": [
0,
1100.0,
0,
118211,
"710baad266ab9d05897856bb7a1e5b3f"
]
}
]
},
"aggregations": {
"total-count": {
"value": 341
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
16.68 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":"29a12453504bafeb353763a17a1a2022"}},{"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"}},"range-anzahlEbenen":{"stats":{"field":"attribute_anzahlEbenen"}},"multi-fachbodenmaterial":{"composite":{"sources":[{"multi-fachbodenmaterial.sorting":{"terms":{"field":"attribute_fachbodenmaterial","order":"ASC"}}},{"multi-fachbodenmaterial.key":{"terms":{"field":"attribute_fachbodenmaterial"}}}],"size":"99999"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"range-laengeQuertraverse":{"stats":{"field":"attribute_laengeQuertraverse"}},"multi-fachbreite":{"composite":{"sources":[{"multi-fachbreite.sorting":{"terms":{"field":"attribute_fachbreite","order":"ASC"}}},{"multi-fachbreite.key":{"terms":{"field":"attribute_fachbreite"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"range-feldlast":{"stats":{"field":"attribute_feldlast"}},"multi-oberflaeche":{"composite":{"sources":[{"multi-oberflaeche.sorting":{"terms":{"field":"attribute_oberflaeche","order":"ASC"}}},{"multi-oberflaeche.key":{"terms":{"field":"attribute_oberflaeche"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"range-fachbodenTragkraft":{"stats":{"field":"attribute_fachbodenTragkraft"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"multi-farbeRahmen":{"composite":{"sources":[{"multi-farbeRahmen.sorting":{"terms":{"field":"attribute_farbeRahmen","order":"ASC"}}},{"multi-farbeRahmen.key":{"terms":{"field":"attribute_farbeRahmen"}}}],"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": "29a12453504bafeb353763a17a1a2022"
}
},
{
"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"
}
},
"range-anzahlEbenen": {
"stats": {
"field": "attribute_anzahlEbenen"
}
},
"multi-fachbodenmaterial": {
"composite": {
"sources": [
{
"multi-fachbodenmaterial.sorting": {
"terms": {
"field": "attribute_fachbodenmaterial",
"order": "ASC"
}
}
},
{
"multi-fachbodenmaterial.key": {
"terms": {
"field": "attribute_fachbodenmaterial"
}
}
}
],
"size": "99999"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"range-laengeQuertraverse": {
"stats": {
"field": "attribute_laengeQuertraverse"
}
},
"multi-fachbreite": {
"composite": {
"sources": [
{
"multi-fachbreite.sorting": {
"terms": {
"field": "attribute_fachbreite",
"order": "ASC"
}
}
},
{
"multi-fachbreite.key": {
"terms": {
"field": "attribute_fachbreite"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"range-feldlast": {
"stats": {
"field": "attribute_feldlast"
}
},
"multi-oberflaeche": {
"composite": {
"sources": [
{
"multi-oberflaeche.sorting": {
"terms": {
"field": "attribute_oberflaeche",
"order": "ASC"
}
}
},
{
"multi-oberflaeche.key": {
"terms": {
"field": "attribute_oberflaeche"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"range-fachbodenTragkraft": {
"stats": {
"field": "attribute_fachbodenTragkraft"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"multi-farbeRahmen": {
"composite": {
"sources": [
{
"multi-farbeRahmen.sorting": {
"terms": {
"field": "attribute_farbeRahmen",
"order": "ASC"
}
}
},
{
"multi-farbeRahmen.key": {
"terms": {
"field": "attribute_farbeRahmen"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 9,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 341,
"min": 101.0,
"max": 762.0,
"avg": 296.0557184750733,
"sum": 100955.0
},
"rating-exists": {
"doc_count": 341,
"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": "0e9efab1edec8acb8db5b0b6309d412c",
"manufacturer-count-filter.key": "0e9efab1edec8acb8db5b0b6309d412c"
},
"doc_count": 43
},
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 108
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 190
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"width": {
"count": 341,
"min": 400.0,
"max": 5140.0,
"avg": 981.4369501466275,
"sum": 334670.0
},
"width-stats": {
"doc_count": 341,
"width-stats": {
"count": 341,
"min": 400.0,
"max": 5140.0,
"avg": 981.4369501466275,
"sum": 334670.0
}
},
"height": {
"count": 341,
"min": 748.0,
"max": 2600.0,
"avg": 2120.008797653959,
"sum": 722923.0
},
"height-stats": {
"doc_count": 341,
"height-stats": {
"count": 341,
"min": 748.0,
"max": 2600.0,
"avg": 2120.008797653959,
"sum": 722923.0
}
},
"tiefe": {
"count": 341,
"min": 300.0,
"max": 626.0,
"avg": 435.8533724340176,
"sum": 148626.0
},
"range-anzahlEbenen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-fachbodenmaterial": {
"buckets": []
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 6
}
]
},
"range-laengeQuertraverse": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-fachbreite": {
"buckets": []
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "ahorn",
"multi-farbe.key": "ahorn"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "buche",
"multi-farbe.key": "buche"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "graphit",
"multi-farbe.key": "graphit"
},
"doc_count": 8
},
{
"key": {
"multi-farbe.sorting": "lichtgrau",
"multi-farbe.key": "lichtgrau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "nussbaum",
"multi-farbe.key": "nussbaum"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 7
}
]
},
"range-feldlast": {
"count": 298,
"min": 500.0,
"max": 2000.0,
"avg": 1255.03355704698,
"sum": 374000.0
},
"multi-oberflaeche": {
"buckets": []
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "150 kg",
"multi-fachlast.key": "150 kg"
},
"doc_count": 51
},
{
"key": {
"multi-fachlast.sorting": "250 kg",
"multi-fachlast.key": "250 kg"
},
"doc_count": 67
},
{
"key": {
"multi-fachlast.sorting": "60 kg",
"multi-fachlast.key": "60 kg"
},
"doc_count": 48
},
{
"key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"doc_count": 96
}
]
},
"range-fachbodenTragkraft": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "2 St\u00fcck",
"multi-anzahlFachboeden.key": "2 St\u00fcck"
},
"doc_count": 36
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 12
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 121
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 105
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 24
}
]
},
"multi-farbeRahmen": {
"after_key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbeRahmen.sorting": "RAL 7035 lichtgrau",
"multi-farbeRahmen.key": "RAL 7035 lichtgrau"
},
"doc_count": 108
},
{
"key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"doc_count": 190
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
},
{
"key": "0e9efab1edec8acb8db5b0b6309d412c",
"doc_count": 43
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|