| 1 |
16.66 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":"a37f3e4a8f5e19d03dfc78626b8312bf"}},{"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": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 542,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "a19e45ac37fad4b5bf008ef59b02dab2",
"_score": 1100.0,
"_source": {
"id": "a19e45ac37fad4b5bf008ef59b02dab2",
"autoIncrement": 135007.0
},
"fields": {
"displayGroup": [
"86b9b61de268e7ff30dcc9318c2bfef7"
]
},
"sort": [
77,
1100.0,
0,
135007,
"a19e45ac37fad4b5bf008ef59b02dab2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c9730b31d1955d9c049df546c6baa79e",
"_score": 1100.0,
"_source": {
"id": "c9730b31d1955d9c049df546c6baa79e",
"autoIncrement": 73710.0
},
"fields": {
"displayGroup": [
"a69b1d0b5b74fb640e383cbdd3a51bd2"
]
},
"sort": [
77,
1100.0,
0,
73710,
"c9730b31d1955d9c049df546c6baa79e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a875f367a0463cedb76e180489c80ad6",
"_score": 1100.0,
"_source": {
"id": "a875f367a0463cedb76e180489c80ad6",
"autoIncrement": 135005.0
},
"fields": {
"displayGroup": [
"79b473e44db0170cba6883f450fb9f5c"
]
},
"sort": [
76,
1100.0,
0,
135005,
"a875f367a0463cedb76e180489c80ad6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3eadbe490482f938229ffb2066d26cbb",
"_score": 1100.0,
"_source": {
"id": "3eadbe490482f938229ffb2066d26cbb",
"autoIncrement": 134931.0
},
"fields": {
"displayGroup": [
"d85992af1d89762d37154dc1801a5c8a"
]
},
"sort": [
76,
1100.0,
0,
134931,
"3eadbe490482f938229ffb2066d26cbb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "63a9b999044e3bc9feb67e5f147c7219",
"_score": 1100.0,
"_source": {
"id": "63a9b999044e3bc9feb67e5f147c7219",
"autoIncrement": 73239.0
},
"fields": {
"displayGroup": [
"05d226951c82ca59c8d3fd1c8b0ab7a4"
]
},
"sort": [
76,
1100.0,
0,
73239,
"63a9b999044e3bc9feb67e5f147c7219"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a372d51bb4dbe0a34cce4b24a36f67a7",
"_score": 1100.0,
"_source": {
"id": "a372d51bb4dbe0a34cce4b24a36f67a7",
"autoIncrement": 73647.0
},
"fields": {
"displayGroup": [
"fc4152df4f7ff33e40e218fe1f8482b3"
]
},
"sort": [
75,
1100.0,
0,
73647,
"a372d51bb4dbe0a34cce4b24a36f67a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c7b1c5949d4178062168893fe188a642",
"_score": 1100.0,
"_source": {
"id": "c7b1c5949d4178062168893fe188a642",
"autoIncrement": 73238.0
},
"fields": {
"displayGroup": [
"be811264b210a21a21390dc4a9936caf"
]
},
"sort": [
75,
1100.0,
0,
73238,
"c7b1c5949d4178062168893fe188a642"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ecc10f870108fd0998272ee3c90d1345",
"_score": 1100.0,
"_source": {
"id": "ecc10f870108fd0998272ee3c90d1345",
"autoIncrement": 135059.0
},
"fields": {
"displayGroup": [
"4fb81146820fc94ef270e5e2fecf045b"
]
},
"sort": [
74,
1100.0,
0,
135059,
"ecc10f870108fd0998272ee3c90d1345"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ce1c91c49b63c0c5b883972b64083001",
"_score": 1100.0,
"_source": {
"id": "ce1c91c49b63c0c5b883972b64083001",
"autoIncrement": 73504.0
},
"fields": {
"displayGroup": [
"52402b7d01d521e77ac4509fdad644ff"
]
},
"sort": [
74,
1100.0,
0,
73504,
"ce1c91c49b63c0c5b883972b64083001"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a479f188b7300df169c796cbb94b9d27",
"_score": 1100.0,
"_source": {
"id": "a479f188b7300df169c796cbb94b9d27",
"autoIncrement": 73709.0
},
"fields": {
"displayGroup": [
"9a83927f594772bceb6c3b934d9b6b6e"
]
},
"sort": [
73,
1100.0,
0,
73709,
"a479f188b7300df169c796cbb94b9d27"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9f985929ffa94d32790c61f52690d1f4",
"_score": 1100.0,
"_source": {
"id": "9f985929ffa94d32790c61f52690d1f4",
"autoIncrement": 134958.0
},
"fields": {
"displayGroup": [
"a493acd8c7a2cd2e4fd83d2d62018bf3"
]
},
"sort": [
72,
1100.0,
0,
134958,
"9f985929ffa94d32790c61f52690d1f4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6c5dc79a8e5a89ef6d34cec6afbd74a6",
"_score": 1100.0,
"_source": {
"id": "6c5dc79a8e5a89ef6d34cec6afbd74a6",
"autoIncrement": 134933.0
},
"fields": {
"displayGroup": [
"193b4043ab62b460ceeeb705f5905665"
]
},
"sort": [
72,
1100.0,
0,
134933,
"6c5dc79a8e5a89ef6d34cec6afbd74a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d1f67456a5d4af4b99f5171a23127a26",
"_score": 1100.0,
"_source": {
"id": "d1f67456a5d4af4b99f5171a23127a26",
"autoIncrement": 134960.0
},
"fields": {
"displayGroup": [
"0ee3e4381355a1428e378f27d93a2ae8"
]
},
"sort": [
71,
1100.0,
0,
134960,
"d1f67456a5d4af4b99f5171a23127a26"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dfb1c8a340d969e52148303dfa09c0c4",
"_score": 1100.0,
"_source": {
"id": "dfb1c8a340d969e52148303dfa09c0c4",
"autoIncrement": 134959.0
},
"fields": {
"displayGroup": [
"04655dba316b1b8e6bced2a4e90ce813"
]
},
"sort": [
70,
1100.0,
0,
134959,
"dfb1c8a340d969e52148303dfa09c0c4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9154e4ede8827e56632f450aa50fb842",
"_score": 1100.0,
"_source": {
"id": "9154e4ede8827e56632f450aa50fb842",
"autoIncrement": 134932.0
},
"fields": {
"displayGroup": [
"477d766cb9e491eed019ade172cb8e4c"
]
},
"sort": [
70,
1100.0,
0,
134932,
"9154e4ede8827e56632f450aa50fb842"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "33b7ebb3e4c4d694fc5bced11920ad91",
"_score": 1100.0,
"_source": {
"id": "33b7ebb3e4c4d694fc5bced11920ad91",
"autoIncrement": 134961.0
},
"fields": {
"displayGroup": [
"f774ae7816f8104821703234943aae54"
]
},
"sort": [
69,
1100.0,
0,
134961,
"33b7ebb3e4c4d694fc5bced11920ad91"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "02e4352507af88d61e1f0df6470c4b06",
"_score": 1100.0,
"_source": {
"id": "02e4352507af88d61e1f0df6470c4b06",
"autoIncrement": 134957.0
},
"fields": {
"displayGroup": [
"8876cabc7ff8915e9143463b7837b5bd"
]
},
"sort": [
68,
1100.0,
0,
134957,
"02e4352507af88d61e1f0df6470c4b06"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e32b2735d48ffeb82b39e281a9fc95d",
"_score": 1100.0,
"_source": {
"id": "6e32b2735d48ffeb82b39e281a9fc95d",
"autoIncrement": 134953.0
},
"fields": {
"displayGroup": [
"82e9fef82f987fe11601bb0bf41144ec"
]
},
"sort": [
68,
1100.0,
0,
134953,
"6e32b2735d48ffeb82b39e281a9fc95d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "da6b8f25b63e99563bb6c54e15c088ff",
"_score": 1100.0,
"_source": {
"id": "da6b8f25b63e99563bb6c54e15c088ff",
"autoIncrement": 134924.0
},
"fields": {
"displayGroup": [
"533e3248f3bca60589f6c70c8852a9b8"
]
},
"sort": [
68,
1100.0,
0,
134924,
"da6b8f25b63e99563bb6c54e15c088ff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37d294b868c193b75fd9e9fb59e37132",
"_score": 1100.0,
"_source": {
"id": "37d294b868c193b75fd9e9fb59e37132",
"autoIncrement": 134955.0
},
"fields": {
"displayGroup": [
"36b6e8377c53ac5642891b8162216b99"
]
},
"sort": [
67,
1100.0,
0,
134955,
"37d294b868c193b75fd9e9fb59e37132"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0c42a2cc1130ccf152f6ba3d869c8d8e",
"_score": 1100.0,
"_source": {
"id": "0c42a2cc1130ccf152f6ba3d869c8d8e",
"autoIncrement": 134954.0
},
"fields": {
"displayGroup": [
"4580edb5502d8fbd0cac17488b6710c7"
]
},
"sort": [
66,
1100.0,
0,
134954,
"0c42a2cc1130ccf152f6ba3d869c8d8e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8fe6b5b7feaaf82f88891aaf660d31e8",
"_score": 1100.0,
"_source": {
"id": "8fe6b5b7feaaf82f88891aaf660d31e8",
"autoIncrement": 134926.0
},
"fields": {
"displayGroup": [
"fbfba1e6a5a2243cba4a1a1b9ee4dfd1"
]
},
"sort": [
66,
1100.0,
0,
134926,
"8fe6b5b7feaaf82f88891aaf660d31e8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8de9384d8908bc826dcb5c7dfb0a7ac7",
"_score": 1100.0,
"_source": {
"id": "8de9384d8908bc826dcb5c7dfb0a7ac7",
"autoIncrement": 134956.0
},
"fields": {
"displayGroup": [
"125739ebd3cd80339b305d970d1bc8fe"
]
},
"sort": [
65,
1100.0,
0,
134956,
"8de9384d8908bc826dcb5c7dfb0a7ac7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4101531bbec7f58ea86fee9d2682d13f",
"_score": 1100.0,
"_source": {
"id": "4101531bbec7f58ea86fee9d2682d13f",
"autoIncrement": 134950.0
},
"fields": {
"displayGroup": [
"2db4528e8ad572a3bec3d95cd8992d02"
]
},
"sort": [
64,
1100.0,
0,
134950,
"4101531bbec7f58ea86fee9d2682d13f"
]
}
]
},
"aggregations": {
"total-count": {
"value": 542
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.69 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":"a37f3e4a8f5e19d03dfc78626b8312bf"}},{"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"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"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": "a37f3e4a8f5e19d03dfc78626b8312bf"
}
},
{
"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"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"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": 542,
"min": 2.0,
"max": 122.0,
"avg": 13.272011070110702,
"sum": 7193.43
},
"rating-exists": {
"doc_count": 542,
"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": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1a883793b8738cf7ab301f8d7c8d5b91",
"manufacturer-count-filter.key": "1a883793b8738cf7ab301f8d7c8d5b91"
},
"doc_count": 2
},
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"doc_count": 506
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 384,
"min": 20.0,
"max": 660.0,
"avg": 263.640625,
"sum": 101238.0
},
"width-stats": {
"doc_count": 384,
"width-stats": {
"count": 384,
"min": 20.0,
"max": 660.0,
"avg": 263.640625,
"sum": 101238.0
}
},
"height": {
"count": 264,
"min": 20.0,
"max": 1000.0,
"avg": 211.62121212121212,
"sum": 55868.0
},
"height-stats": {
"doc_count": 264,
"height-stats": {
"count": 264,
"min": 20.0,
"max": 1000.0,
"avg": 211.62121212121212,
"sum": 55868.0
}
},
"tiefe": {
"count": 1,
"min": 430.0,
"max": 430.0,
"avg": 430.0,
"sum": 430.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Hinweisschilder",
"multi-typModel.key": "Zubeh\u00f6r Hinweisschilder"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Bodenmarkieraufkleber",
"multi-typModel.key": "Bodenmarkieraufkleber"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Brandschutzkennzeichen",
"multi-typModel.key": "Brandschutzkennzeichen"
},
"doc_count": 33
},
{
"key": {
"multi-typModel.sorting": "Gebotsschilder",
"multi-typModel.key": "Gebotsschilder"
},
"doc_count": 62
},
{
"key": {
"multi-typModel.sorting": "Parkplatzkennzeichnung",
"multi-typModel.key": "Parkplatzkennzeichnung"
},
"doc_count": 31
},
{
"key": {
"multi-typModel.sorting": "Piktogramme \/ Beschrift.",
"multi-typModel.key": "Piktogramme \/ Beschrift."
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Pr\u00fcf- und Inventarplaketten",
"multi-typModel.key": "Pr\u00fcf- und Inventarplaketten"
},
"doc_count": 13
},
{
"key": {
"multi-typModel.sorting": "Pr\u00fcfplaketten",
"multi-typModel.key": "Pr\u00fcfplaketten"
},
"doc_count": 24
},
{
"key": {
"multi-typModel.sorting": "Rettungswegkennzeichen",
"multi-typModel.key": "Rettungswegkennzeichen"
},
"doc_count": 105
},
{
"key": {
"multi-typModel.sorting": "Sicherheitsbeschilderung",
"multi-typModel.key": "Sicherheitsbeschilderung"
},
"doc_count": 30
},
{
"key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"doc_count": 64
},
{
"key": {
"multi-typModel.sorting": "Warnkennzeichnung",
"multi-typModel.key": "Warnkennzeichnung"
},
"doc_count": 125
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Abfallsammler f\u00fcr innen",
"multi-typModel.key": "Zubeh\u00f6r Abfallsammler f\u00fcr innen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Hinweisschilder",
"multi-typModel.key": "Zubeh\u00f6r Hinweisschilder"
},
"doc_count": 5
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Polyethylen",
"multi-material.key": "Polyethylen"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Alu langnachleuchtend",
"multi-material.key": "Alu langnachleuchtend"
},
"doc_count": 1
},
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 125
},
{
"key": {
"multi-material.sorting": "Aluminium langnachleuchtend",
"multi-material.key": "Aluminium langnachleuchtend"
},
"doc_count": 18
},
{
"key": {
"multi-material.sorting": "Folie",
"multi-material.key": "Folie"
},
"doc_count": 197
},
{
"key": {
"multi-material.sorting": "Folie langnachleuchtend",
"multi-material.key": "Folie langnachleuchtend"
},
"doc_count": 34
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 87
},
{
"key": {
"multi-material.sorting": "Kunststoff langnachleuchtend",
"multi-material.key": "Kunststoff langnachleuchtend"
},
"doc_count": 38
},
{
"key": {
"multi-material.sorting": "Magnetfolie",
"multi-material.key": "Magnetfolie"
},
"doc_count": 6
},
{
"key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"doc_count": 12
},
{
"key": {
"multi-material.sorting": "Polyethylen",
"multi-material.key": "Polyethylen"
},
"doc_count": 6
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c3a426735eefdce4df6537fb4b7ae301",
"doc_count": 506
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 8
},
{
"key": "1a883793b8738cf7ab301f8d7c8d5b91",
"doc_count": 2
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|