1 |
3.52 ms |
Request:
{"index":"sw_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"3aaa0b8abe954c09892d40b581d29df3"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"3917d8ddc17059f1b7c67355e78c82db"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"sort":[{"sales":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":30,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 3,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw_product_1743509857",
"_type": "_doc",
"_id": "2825e5efaee95b25bf8274a2d84cacd2",
"_score": null,
"_ignored": [
"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.importedAt"
],
"_source": {
"id": "2825e5efaee95b25bf8274a2d84cacd2",
"autoIncrement": 91047.0,
"ratingAverage": 0.0,
"active": true,
"available": true,
"isCloseout": false,
"shippingFree": false,
"markAsTopseller": false,
"visibilities": [
{
"_count": 1,
"visibility": 30,
"salesChannelId": "3aaa0b8abe954c09892d40b581d29df3"
}
],
"availableStock": 0,
"productNumber": "126-99704D",
"ean": "4015615997054",
"displayGroup": "55c6270829ad5c94517a30852c8f9d60",
"sales": 0,
"stock": 0,
"weight": 0.0,
"width": 0.0,
"length": 0.0,
"height": 0.0,
"manufacturerId": "9392bc19331159aabca04b682fa53fa4",
"manufacturerNumber": "99704D",
"releaseDate": null,
"createdAt": "2025-07-10T14:42:52+00:00",
"categoryTree": [
"960adcd8bdb7465e888a7f0e0d739de3",
"7774bfd0cf9f4338b6778eecd06690d4",
"0b84a520802a4631b1cd7a50ae367d80",
"3917d8ddc17059f1b7c67355e78c82db"
],
"categoriesRo": [
{
"id": "960adcd8bdb7465e888a7f0e0d739de3",
"_count": 1
},
{
"id": "7774bfd0cf9f4338b6778eecd06690d4",
"_count": 1
},
{
"id": "0b84a520802a4631b1cd7a50ae367d80",
"_count": 1
},
{
"id": "3917d8ddc17059f1b7c67355e78c82db",
"_count": 1
}
],
"taxId": "8b79f09838fd4d9b8d060a8bb8c9b39d",
"tags": [],
"parentId": null,
"coverId": "bfcde1dda63f569f9c786aaa743874df",
"childCount": 0,
"categories": [
{
"id": "3917d8ddc17059f1b7c67355e78c82db",
"_count": 1,
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Herstellerkataloge"
}
}
],
"manufacturer": {
"id": "9392bc19331159aabca04b682fa53fa4",
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Piko"
},
"_count": 1
},
"properties": [
{
"id": "01c3597ed9a458568ff2229158203d02",
"_count": 1,
"groupId": "f00956ca61d15e71b32bb35d68c8deef",
"group": {
"id": "f00956ca61d15e71b32bb35d68c8deef",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "2024"
}
},
{
"id": "123a3042ab5f5aa1a5af76cd18110a56",
"_count": 1,
"groupId": "3a2649b270eb564e901fe07e20d2f8be",
"group": {
"id": "3a2649b270eb564e901fe07e20d2f8be",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "DC"
}
},
{
"id": "583d4fa0fcae5e0fb7304551d3274be7",
"_count": 1,
"groupId": "a61efc337e945b4ebe4b4c292268087c",
"group": {
"id": "a61efc337e945b4ebe4b4c292268087c",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Spur G"
}
},
{
"id": "5f83e618d72555d9b05b232caffa0252",
"_count": 1,
"groupId": "0670df00da5d528a9b01a0c8b8b0fe18",
"group": {
"id": "0670df00da5d528a9b01a0c8b8b0fe18",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "1:22,5"
}
}
],
"options": [],
"categoryIds": [
"3917d8ddc17059f1b7c67355e78c82db"
],
"optionIds": [],
"propertyIds": [
"01c3597ed9a458568ff2229158203d02",
"123a3042ab5f5aa1a5af76cd18110a56",
"583d4fa0fcae5e0fb7304551d3274be7",
"5f83e618d72555d9b05b232caffa0252"
],
"tagIds": [],
"states": [
"is-physical"
],
"customFields": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": {
"wbo": "KAT",
"isPreOrderProduct": false,
"importedAt": "2025-08-29 13:19:55.438",
"repertus_packstation_delivery_enabled": true,
"mlok_product_availability": "1",
"eva_product_mc4": "NP-099",
"eva_product_rueckstand": 0.0,
"eva_product_resibestandkasse": 0.0,
"eva_product_resibestandfaktura": 0.0
}
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "99704D G-Katalog-2024"
},
"description": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"metaTitle": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"metaDescription": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"customSearchKeywords": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross": 10.0,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net": 8.403361344537815,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross_percentage": 0.0,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage": 0.0
},
"fields": {
"displayGroup": [
"55c6270829ad5c94517a30852c8f9d60"
]
},
"sort": [
0,
"2825e5efaee95b25bf8274a2d84cacd2"
]
},
{
"_index": "sw_product_1743509857",
"_type": "_doc",
"_id": "492764049a375f3fa10a5f27fd9c04be",
"_score": null,
"_ignored": [
"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.importedAt"
],
"_source": {
"id": "492764049a375f3fa10a5f27fd9c04be",
"autoIncrement": 89809.0,
"ratingAverage": 0.0,
"active": true,
"available": true,
"isCloseout": false,
"shippingFree": false,
"markAsTopseller": false,
"visibilities": [
{
"_count": 1,
"visibility": 30,
"salesChannelId": "3aaa0b8abe954c09892d40b581d29df3"
}
],
"availableStock": 0,
"productNumber": "126-99504",
"ean": "4015615995043",
"displayGroup": "32018c3bb435f6119f7b8d5b44a5e849",
"sales": 0,
"stock": 0,
"weight": 0.0,
"width": 0.0,
"length": 0.0,
"height": 0.0,
"manufacturerId": "9392bc19331159aabca04b682fa53fa4",
"manufacturerNumber": "99504",
"releaseDate": null,
"createdAt": "2025-07-10T13:09:12+00:00",
"categoryTree": [
"960adcd8bdb7465e888a7f0e0d739de3",
"7774bfd0cf9f4338b6778eecd06690d4",
"0b84a520802a4631b1cd7a50ae367d80",
"3917d8ddc17059f1b7c67355e78c82db"
],
"categoriesRo": [
{
"id": "960adcd8bdb7465e888a7f0e0d739de3",
"_count": 1
},
{
"id": "7774bfd0cf9f4338b6778eecd06690d4",
"_count": 1
},
{
"id": "0b84a520802a4631b1cd7a50ae367d80",
"_count": 1
},
{
"id": "3917d8ddc17059f1b7c67355e78c82db",
"_count": 1
}
],
"taxId": "8b79f09838fd4d9b8d060a8bb8c9b39d",
"tags": [],
"parentId": null,
"coverId": "19ae1c867c6954369b968642852ccaa3",
"childCount": 0,
"categories": [
{
"id": "3917d8ddc17059f1b7c67355e78c82db",
"_count": 1,
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Herstellerkataloge"
}
}
],
"manufacturer": {
"id": "9392bc19331159aabca04b682fa53fa4",
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Piko"
},
"_count": 1
},
"properties": [
{
"id": "01c3597ed9a458568ff2229158203d02",
"_count": 1,
"groupId": "f00956ca61d15e71b32bb35d68c8deef",
"group": {
"id": "f00956ca61d15e71b32bb35d68c8deef",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "2024"
}
},
{
"id": "123a3042ab5f5aa1a5af76cd18110a56",
"_count": 1,
"groupId": "3a2649b270eb564e901fe07e20d2f8be",
"group": {
"id": "3a2649b270eb564e901fe07e20d2f8be",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "DC"
}
},
{
"id": "5c7c0cabef365bd28653e9d4e0f81045",
"_count": 1,
"groupId": "a61efc337e945b4ebe4b4c292268087c",
"group": {
"id": "a61efc337e945b4ebe4b4c292268087c",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Spur H0"
}
},
{
"id": "a7bf0a869ea95f54aad9e1cdfe705db5",
"_count": 1,
"groupId": "0670df00da5d528a9b01a0c8b8b0fe18",
"group": {
"id": "0670df00da5d528a9b01a0c8b8b0fe18",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "1:87"
}
}
],
"options": [],
"categoryIds": [
"3917d8ddc17059f1b7c67355e78c82db"
],
"optionIds": [],
"propertyIds": [
"01c3597ed9a458568ff2229158203d02",
"123a3042ab5f5aa1a5af76cd18110a56",
"5c7c0cabef365bd28653e9d4e0f81045",
"a7bf0a869ea95f54aad9e1cdfe705db5"
],
"tagIds": [],
"states": [
"is-physical"
],
"customFields": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": {
"wbo": "KAT",
"isPreOrderProduct": false,
"importedAt": "2025-08-29 13:20:25.198",
"repertus_packstation_delivery_enabled": true,
"mlok_product_availability": "1",
"eva_product_mc4": "NP-099",
"eva_product_rueckstand": 1.0,
"eva_product_resibestandkasse": 0.0,
"eva_product_resibestandfaktura": 1.0
}
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "99504 Piko H0 Katalog 2024"
},
"description": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"metaTitle": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"metaDescription": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"customSearchKeywords": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross": 10.0,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net": 8.403361344537815,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross_percentage": 0.0,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage": 0.0
},
"fields": {
"displayGroup": [
"32018c3bb435f6119f7b8d5b44a5e849"
]
},
"sort": [
0,
"492764049a375f3fa10a5f27fd9c04be"
]
},
{
"_index": "sw_product_1743509857",
"_type": "_doc",
"_id": "56ac6baa9180503cb465ff06afe08150",
"_score": null,
"_ignored": [
"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.importedAt"
],
"_source": {
"id": "56ac6baa9180503cb465ff06afe08150",
"autoIncrement": 98250.0,
"ratingAverage": 0.0,
"active": true,
"available": true,
"isCloseout": true,
"shippingFree": false,
"markAsTopseller": true,
"visibilities": [
{
"_count": 1,
"visibility": 30,
"salesChannelId": "3aaa0b8abe954c09892d40b581d29df3"
}
],
"availableStock": 25,
"productNumber": "126-99700",
"ean": "4015615997009",
"displayGroup": "7347dfedbb203569d5082acca910c570",
"sales": 0,
"stock": 25,
"weight": 0.0,
"width": 0.0,
"length": 0.0,
"height": 0.0,
"manufacturerId": "9392bc19331159aabca04b682fa53fa4",
"manufacturerNumber": "99700",
"releaseDate": null,
"createdAt": "2025-08-26T10:20:00+00:00",
"categoryTree": [
"960adcd8bdb7465e888a7f0e0d739de3",
"7774bfd0cf9f4338b6778eecd06690d4",
"0b84a520802a4631b1cd7a50ae367d80",
"3917d8ddc17059f1b7c67355e78c82db"
],
"categoriesRo": [
{
"id": "960adcd8bdb7465e888a7f0e0d739de3",
"_count": 1
},
{
"id": "7774bfd0cf9f4338b6778eecd06690d4",
"_count": 1
},
{
"id": "0b84a520802a4631b1cd7a50ae367d80",
"_count": 1
},
{
"id": "3917d8ddc17059f1b7c67355e78c82db",
"_count": 1
}
],
"taxId": "8b79f09838fd4d9b8d060a8bb8c9b39d",
"tags": [],
"parentId": null,
"coverId": "516ae894ac015d26a7cda1afa56314bc",
"childCount": 0,
"categories": [
{
"id": "3917d8ddc17059f1b7c67355e78c82db",
"_count": 1,
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Herstellerkataloge"
}
}
],
"manufacturer": {
"id": "9392bc19331159aabca04b682fa53fa4",
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Piko"
},
"_count": 1
},
"properties": [
{
"id": "1973691ec31b5e8a8093240465053f2f",
"_count": 1,
"groupId": "9bbb7790ece65153bf2c79f0d8ea5dc6",
"group": {
"id": "9bbb7790ece65153bf2c79f0d8ea5dc6",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Sonderangebot"
}
},
{
"id": "583d4fa0fcae5e0fb7304551d3274be7",
"_count": 1,
"groupId": "a61efc337e945b4ebe4b4c292268087c",
"group": {
"id": "a61efc337e945b4ebe4b4c292268087c",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "Spur G"
}
},
{
"id": "5f83e618d72555d9b05b232caffa0252",
"_count": 1,
"groupId": "0670df00da5d528a9b01a0c8b8b0fe18",
"group": {
"id": "0670df00da5d528a9b01a0c8b8b0fe18",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "1:22,5"
}
},
{
"id": "d4feaec8fd8758afa08e49bf6ad1f9c3",
"_count": 1,
"groupId": "f00956ca61d15e71b32bb35d68c8deef",
"group": {
"id": "f00956ca61d15e71b32bb35d68c8deef",
"_count": 1
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "2020"
}
}
],
"options": [],
"categoryIds": [
"3917d8ddc17059f1b7c67355e78c82db"
],
"optionIds": [],
"propertyIds": [
"1973691ec31b5e8a8093240465053f2f",
"583d4fa0fcae5e0fb7304551d3274be7",
"5f83e618d72555d9b05b232caffa0252",
"d4feaec8fd8758afa08e49bf6ad1f9c3"
],
"tagIds": [],
"states": [
"is-physical"
],
"customFields": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": {
"wbo": "KAT",
"isPreOrderProduct": false,
"importedAt": "2025-08-26 17:55:08.666",
"repertus_packstation_delivery_enabled": true,
"mlok_product_availability": "2",
"eva_product_mc4": "S-25",
"eva_product_rueckstand": 0.0,
"eva_product_resibestandkasse": 0.0,
"eva_product_resibestandfaktura": 0.0
}
},
"name": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": "99700 Piko G Katalog 2020"
},
"description": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"metaTitle": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"metaDescription": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"customSearchKeywords": {
"2fbb5fe2e29a4d70aa5854ce7ce3e20b": null
},
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross": 2.5,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net": 2.100840336134454,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross_percentage": 37.5,
"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage": 37.5
},
"fields": {
"displayGroup": [
"7347dfedbb203569d5082acca910c570"
]
},
"sort": [
0,
"56ac6baa9180503cb465ff06afe08150"
]
}
]
},
"aggregations": {
"total-count": {
"value": 3
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
1.69 ms |
Request:
{"index":"sw_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"3aaa0b8abe954c09892d40b581d29df3"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"3917d8ddc17059f1b7c67355e78c82db"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"aggregations":{"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"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_rule7f7788cf3af2461baf0501b1d3fa3467_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule84eba0cd9f104132abf16ec7cab16db3_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruled6d70f6002614a40953d9876e8009c60_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule49847b689f7f42c281e8fab5fadaf4cb_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rulecc039c828d144b038fa68a61ff71e438_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","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}}}},"is-in-stock-filter":{"filter":{"range":{"stock":{"gt":0}}},"aggregations":{"is-in-stock":{"max":{"field":"stock"}}}},"active-filter":{"filter":{"term":{"isCloseout":true}},"aggregations":{"active":{"max":{"field":"isCloseout"}}}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|