| 1 |
18.67 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":"3210cb5f2a9e659f2772e277a972dff6"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":48,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 77,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "5a544ff8e933e53ccad96f7fa465275f",
"_score": 1100.0,
"_source": {
"id": "5a544ff8e933e53ccad96f7fa465275f",
"autoIncrement": 134968.0
},
"fields": {
"displayGroup": [
"eabe431e966bba42a4fd234b3c1fc4f4"
]
},
"sort": [
0,
1100.0,
0,
134968,
"5a544ff8e933e53ccad96f7fa465275f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "42c3c3a477ed5528f3998d4308c9dcf2",
"_score": 1100.0,
"_source": {
"id": "42c3c3a477ed5528f3998d4308c9dcf2",
"autoIncrement": 134967.0
},
"fields": {
"displayGroup": [
"e7bdc889908018908683ab9611dceff9"
]
},
"sort": [
0,
1100.0,
0,
134967,
"42c3c3a477ed5528f3998d4308c9dcf2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01823d88b5a07f8859bd1dbd107f6ba0",
"_score": 1100.0,
"_source": {
"id": "01823d88b5a07f8859bd1dbd107f6ba0",
"autoIncrement": 134966.0
},
"fields": {
"displayGroup": [
"e9deb694253ff14f26c561e933ab15b8"
]
},
"sort": [
0,
1100.0,
0,
134966,
"01823d88b5a07f8859bd1dbd107f6ba0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4ee7a644d08b181380529a4eb833070a",
"_score": 1100.0,
"_source": {
"id": "4ee7a644d08b181380529a4eb833070a",
"autoIncrement": 134820.0
},
"fields": {
"displayGroup": [
"78cc19cda2acbe620a32d3a117f1b1f6"
]
},
"sort": [
0,
1100.0,
0,
134820,
"4ee7a644d08b181380529a4eb833070a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "905b6f85ff3f8cd4fc9f625c3bc665c2",
"_score": 1100.0,
"_source": {
"id": "905b6f85ff3f8cd4fc9f625c3bc665c2",
"autoIncrement": 134819.0
},
"fields": {
"displayGroup": [
"78866576c5e07f671073a0775efe5f0d"
]
},
"sort": [
0,
1100.0,
0,
134819,
"905b6f85ff3f8cd4fc9f625c3bc665c2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0c5a4d5b33e75578c4e009f0a9e03dc1",
"_score": 1100.0,
"_source": {
"id": "0c5a4d5b33e75578c4e009f0a9e03dc1",
"autoIncrement": 134818.0
},
"fields": {
"displayGroup": [
"065c5bd85813381334b9742fb655f714"
]
},
"sort": [
0,
1100.0,
0,
134818,
"0c5a4d5b33e75578c4e009f0a9e03dc1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "470242bc803efb4a31a8c89f820e08f5",
"_score": 1100.0,
"_source": {
"id": "470242bc803efb4a31a8c89f820e08f5",
"autoIncrement": 134817.0
},
"fields": {
"displayGroup": [
"cbd7830301f767e807f85224449e4901"
]
},
"sort": [
0,
1100.0,
0,
134817,
"470242bc803efb4a31a8c89f820e08f5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "390ba39fc2522f795e554a98a4f53e31",
"_score": 1100.0,
"_source": {
"id": "390ba39fc2522f795e554a98a4f53e31",
"autoIncrement": 134801.0
},
"fields": {
"displayGroup": [
"cbc877039388b692c7bcfff081f219b7"
]
},
"sort": [
0,
1100.0,
0,
134801,
"390ba39fc2522f795e554a98a4f53e31"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7769d12c87dbb5862898178bb4c093a5",
"_score": 1100.0,
"_source": {
"id": "7769d12c87dbb5862898178bb4c093a5",
"autoIncrement": 134800.0
},
"fields": {
"displayGroup": [
"b5501cbd98bdf1b46cc79ccc47931efc"
]
},
"sort": [
0,
1100.0,
0,
134800,
"7769d12c87dbb5862898178bb4c093a5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e2a0a732adf7d0bbcb72e79f9068da39",
"_score": 1100.0,
"_source": {
"id": "e2a0a732adf7d0bbcb72e79f9068da39",
"autoIncrement": 134799.0
},
"fields": {
"displayGroup": [
"b425536b5d05164872d6abfe1f4b5c47"
]
},
"sort": [
0,
1100.0,
0,
134799,
"e2a0a732adf7d0bbcb72e79f9068da39"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ddf0a6285076c602feeb3e625b9544c8",
"_score": 1100.0,
"_source": {
"id": "ddf0a6285076c602feeb3e625b9544c8",
"autoIncrement": 134798.0
},
"fields": {
"displayGroup": [
"fb2d8725e2677fd99847d83993efb1b2"
]
},
"sort": [
0,
1100.0,
0,
134798,
"ddf0a6285076c602feeb3e625b9544c8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f89a3ac8ea63369aa0bb3cd54530e18",
"_score": 1100.0,
"_source": {
"id": "4f89a3ac8ea63369aa0bb3cd54530e18",
"autoIncrement": 73749.0
},
"fields": {
"displayGroup": [
"3930bbfb3e544bf5165f5feb947d63ce"
]
},
"sort": [
0,
1100.0,
0,
73749,
"4f89a3ac8ea63369aa0bb3cd54530e18"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a31324b313e1f436e2425b748edec526",
"_score": 1100.0,
"_source": {
"id": "a31324b313e1f436e2425b748edec526",
"autoIncrement": 73746.0
},
"fields": {
"displayGroup": [
"fd5d3fcee9e4a04795423cf40c8e288d"
]
},
"sort": [
0,
1100.0,
0,
73746,
"a31324b313e1f436e2425b748edec526"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fc2829a2832818cf63ecdc4994ad954f",
"_score": 1100.0,
"_source": {
"id": "fc2829a2832818cf63ecdc4994ad954f",
"autoIncrement": 73743.0
},
"fields": {
"displayGroup": [
"9ea645de41206a438253e6103a2a242a"
]
},
"sort": [
0,
1100.0,
0,
73743,
"fc2829a2832818cf63ecdc4994ad954f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e6057e3dc6abd3ea4cefa2429eb1c04",
"_score": 1100.0,
"_source": {
"id": "5e6057e3dc6abd3ea4cefa2429eb1c04",
"autoIncrement": 73734.0
},
"fields": {
"displayGroup": [
"cbc70f0856c48608d36adae188515051"
]
},
"sort": [
0,
1100.0,
0,
73734,
"5e6057e3dc6abd3ea4cefa2429eb1c04"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "17e7c3ac1399256e23ece4aaa140100d",
"_score": 1100.0,
"_source": {
"id": "17e7c3ac1399256e23ece4aaa140100d",
"autoIncrement": 73731.0
},
"fields": {
"displayGroup": [
"6b81450b68dbc4ddd9f4bee88c8101a7"
]
},
"sort": [
0,
1100.0,
0,
73731,
"17e7c3ac1399256e23ece4aaa140100d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "05bac54a1675b598573eb328b926c288",
"_score": 1100.0,
"_source": {
"id": "05bac54a1675b598573eb328b926c288",
"autoIncrement": 73723.0
},
"fields": {
"displayGroup": [
"d8d4934da4c85e67b467902acafb9e79"
]
},
"sort": [
0,
1100.0,
0,
73723,
"05bac54a1675b598573eb328b926c288"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "070438b97ffc90766c637b060d011ef9",
"_score": 1100.0,
"_source": {
"id": "070438b97ffc90766c637b060d011ef9",
"autoIncrement": 73718.0
},
"fields": {
"displayGroup": [
"7d0ec7c92d9fcacc7401b260fc0395f8"
]
},
"sort": [
0,
1100.0,
0,
73718,
"070438b97ffc90766c637b060d011ef9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "38f53e113810e115dacd99fb1d840485",
"_score": 1100.0,
"_source": {
"id": "38f53e113810e115dacd99fb1d840485",
"autoIncrement": 73571.0
},
"fields": {
"displayGroup": [
"1be6e6325bc12851eff8904e427a62c2"
]
},
"sort": [
0,
1100.0,
0,
73571,
"38f53e113810e115dacd99fb1d840485"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "72aa397e83af474729c1048340c36ed1",
"_score": 1100.0,
"_source": {
"id": "72aa397e83af474729c1048340c36ed1",
"autoIncrement": 73565.0
},
"fields": {
"displayGroup": [
"24e7127f552ea20f94f0978ada6199d7"
]
},
"sort": [
0,
1100.0,
0,
73565,
"72aa397e83af474729c1048340c36ed1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bb91ca27736e76562cd29e3a51c15bde",
"_score": 1100.0,
"_source": {
"id": "bb91ca27736e76562cd29e3a51c15bde",
"autoIncrement": 73560.0
},
"fields": {
"displayGroup": [
"194098d9e5391095cc92ea9db604c56a"
]
},
"sort": [
0,
1100.0,
0,
73560,
"bb91ca27736e76562cd29e3a51c15bde"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e32c66e2d5f6378337e423d934b1b8ea",
"_score": 1100.0,
"_source": {
"id": "e32c66e2d5f6378337e423d934b1b8ea",
"autoIncrement": 73559.0
},
"fields": {
"displayGroup": [
"89ffae9a4442e986f85cac585e3da884"
]
},
"sort": [
0,
1100.0,
0,
73559,
"e32c66e2d5f6378337e423d934b1b8ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1c3957340599f358b5e16ddf4d4e8572",
"_score": 1100.0,
"_source": {
"id": "1c3957340599f358b5e16ddf4d4e8572",
"autoIncrement": 73556.0
},
"fields": {
"displayGroup": [
"886cd6b51a62014dad0458960704baea"
]
},
"sort": [
0,
1100.0,
0,
73556,
"1c3957340599f358b5e16ddf4d4e8572"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ee5f2c88d2a68075d8d1efbc37c0bb8a",
"_score": 1100.0,
"_source": {
"id": "ee5f2c88d2a68075d8d1efbc37c0bb8a",
"autoIncrement": 73553.0
},
"fields": {
"displayGroup": [
"39b4418eb138ddac37c2441be2cdfcf2"
]
},
"sort": [
0,
1100.0,
0,
73553,
"ee5f2c88d2a68075d8d1efbc37c0bb8a"
]
}
]
},
"aggregations": {
"total-count": {
"value": 77
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.56 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":"3210cb5f2a9e659f2772e277a972dff6"}},{"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": "3210cb5f2a9e659f2772e277a972dff6"
}
},
{
"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": 77,
"min": 2.3,
"max": 35.5,
"avg": 8.980519480519481,
"sum": 691.5
},
"rating-exists": {
"doc_count": 77,
"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": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"doc_count": 74
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"width": {
"count": 77,
"min": 20.0,
"max": 430.0,
"avg": 230.7792207792208,
"sum": 17770.0
},
"width-stats": {
"doc_count": 77,
"width-stats": {
"count": 77,
"min": 20.0,
"max": 430.0,
"avg": 230.7792207792208,
"sum": 17770.0
}
},
"height": {
"count": 20,
"min": 60.0,
"max": 400.0,
"avg": 215.5,
"sum": 4310.0
},
"height-stats": {
"doc_count": 20,
"height-stats": {
"count": 20,
"min": 60.0,
"max": 400.0,
"avg": 215.5,
"sum": 4310.0
}
},
"tiefe": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Bodenmarkieraufkleber",
"multi-typModel.key": "Bodenmarkieraufkleber"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Sicherheitsbeschilderung",
"multi-typModel.key": "Sicherheitsbeschilderung"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"doc_count": 64
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 26
},
{
"key": {
"multi-material.sorting": "Folie",
"multi-material.key": "Folie"
},
"doc_count": 31
},
{
"key": {
"multi-material.sorting": "Folie langnachleuchtend",
"multi-material.key": "Folie langnachleuchtend"
},
"doc_count": 2
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 13
},
{
"key": {
"multi-material.sorting": "Magnetfolie",
"multi-material.key": "Magnetfolie"
},
"doc_count": 2
},
{
"key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"doc_count": 3
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c3a426735eefdce4df6537fb4b7ae301",
"doc_count": 74
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|