| 1 |
17.11 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":"9a835274ecddcc622a6f4c47d102d6e0"}},{"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":96,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 205,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "3801ddf41afd8c1d96fef607511ef1f0",
"_score": 1100.0,
"_source": {
"id": "3801ddf41afd8c1d96fef607511ef1f0",
"autoIncrement": 69079.0
},
"fields": {
"displayGroup": [
"2f388cef81054f99059877a9c71ba1eb"
]
},
"sort": [
0,
1100.0,
0,
69079,
"3801ddf41afd8c1d96fef607511ef1f0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e34cdff596d5c977ecab0cd4e3943dac",
"_score": 1100.0,
"_source": {
"id": "e34cdff596d5c977ecab0cd4e3943dac",
"autoIncrement": 68970.0
},
"fields": {
"displayGroup": [
"9335f875ec36d839977d5fd540191003"
]
},
"sort": [
0,
1100.0,
0,
68970,
"e34cdff596d5c977ecab0cd4e3943dac"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "112d676d79cf548ce7698b42b1e2ea0a",
"_score": 1100.0,
"_source": {
"id": "112d676d79cf548ce7698b42b1e2ea0a",
"autoIncrement": 68969.0
},
"fields": {
"displayGroup": [
"32418690440cfcf5e3e7a671dce16dbe"
]
},
"sort": [
0,
1100.0,
0,
68969,
"112d676d79cf548ce7698b42b1e2ea0a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "00bedadf7052314ed7e8cfba99a0070d",
"_score": 1100.0,
"_source": {
"id": "00bedadf7052314ed7e8cfba99a0070d",
"autoIncrement": 68968.0
},
"fields": {
"displayGroup": [
"2f3354d1ea74e3ea72b26a37a801cf25"
]
},
"sort": [
0,
1100.0,
0,
68968,
"00bedadf7052314ed7e8cfba99a0070d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0e8392aac4323c0af6ffeb9e87a0f254",
"_score": 1100.0,
"_source": {
"id": "0e8392aac4323c0af6ffeb9e87a0f254",
"autoIncrement": 68967.0
},
"fields": {
"displayGroup": [
"1d05b8b057d1fea7dddf9be1c604fca5"
]
},
"sort": [
0,
1100.0,
0,
68967,
"0e8392aac4323c0af6ffeb9e87a0f254"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5428fa39c86c241b92d24d3d0ddf0ac3",
"_score": 1100.0,
"_source": {
"id": "5428fa39c86c241b92d24d3d0ddf0ac3",
"autoIncrement": 68966.0
},
"fields": {
"displayGroup": [
"3265dbc3e199b8f649862a1a965b6a17"
]
},
"sort": [
0,
1100.0,
0,
68966,
"5428fa39c86c241b92d24d3d0ddf0ac3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ebb1a6492cbb69dc37051ec6b5946e34",
"_score": 1100.0,
"_source": {
"id": "ebb1a6492cbb69dc37051ec6b5946e34",
"autoIncrement": 68965.0
},
"fields": {
"displayGroup": [
"64cfdcf472d2bf4a0c99b586237acb68"
]
},
"sort": [
0,
1100.0,
0,
68965,
"ebb1a6492cbb69dc37051ec6b5946e34"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d05e79c6947650ed8a6012636a2e5961",
"_score": 1100.0,
"_source": {
"id": "d05e79c6947650ed8a6012636a2e5961",
"autoIncrement": 68521.0
},
"fields": {
"displayGroup": [
"6276327406ba6a95e2dda4e223e47f96"
]
},
"sort": [
0,
1100.0,
0,
68521,
"d05e79c6947650ed8a6012636a2e5961"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4b700282d94662f769fb4bcda9a4c2c3",
"_score": 1100.0,
"_source": {
"id": "4b700282d94662f769fb4bcda9a4c2c3",
"autoIncrement": 68520.0
},
"fields": {
"displayGroup": [
"fd06305d3eefc3464d8e1c505534ac10"
]
},
"sort": [
0,
1100.0,
0,
68520,
"4b700282d94662f769fb4bcda9a4c2c3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9c411867fdd49038299eb0b7b932c8a0",
"_score": 1100.0,
"_source": {
"id": "9c411867fdd49038299eb0b7b932c8a0",
"autoIncrement": 68519.0
},
"fields": {
"displayGroup": [
"0252908c1661a3d86bd1ea4bbc67851f"
]
},
"sort": [
0,
1100.0,
0,
68519,
"9c411867fdd49038299eb0b7b932c8a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "da1e2bff2056da2d2a9ab68f86d29a36",
"_score": 1100.0,
"_source": {
"id": "da1e2bff2056da2d2a9ab68f86d29a36",
"autoIncrement": 68514.0
},
"fields": {
"displayGroup": [
"d53a3c6ce363d75e5871ea1387f5b180"
]
},
"sort": [
0,
1100.0,
0,
68514,
"da1e2bff2056da2d2a9ab68f86d29a36"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1e4f3a6d279ad42e28898f0ed9df35cd",
"_score": 1100.0,
"_source": {
"id": "1e4f3a6d279ad42e28898f0ed9df35cd",
"autoIncrement": 63934.0
},
"fields": {
"displayGroup": [
"ab5e7eca9b9772a8118dbd9ca6bb467c"
]
},
"sort": [
0,
1100.0,
0,
63934,
"1e4f3a6d279ad42e28898f0ed9df35cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0bdbf0dffad173a89702159a63d6a64",
"_score": 1100.0,
"_source": {
"id": "b0bdbf0dffad173a89702159a63d6a64",
"autoIncrement": 63223.0
},
"fields": {
"displayGroup": [
"2c0a2cdbbcd410ea2b076133b46038bb"
]
},
"sort": [
0,
1100.0,
0,
63223,
"b0bdbf0dffad173a89702159a63d6a64"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f495e92646a17c2db47ae15489173ede",
"_score": 1100.0,
"_source": {
"id": "f495e92646a17c2db47ae15489173ede",
"autoIncrement": 63222.0
},
"fields": {
"displayGroup": [
"93ffbd4e88d011a7c77f2faedd46cb69"
]
},
"sort": [
0,
1100.0,
0,
63222,
"f495e92646a17c2db47ae15489173ede"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "839a84f5c5dc1137203c9f6a13f996cb",
"_score": 1100.0,
"_source": {
"id": "839a84f5c5dc1137203c9f6a13f996cb",
"autoIncrement": 63221.0
},
"fields": {
"displayGroup": [
"dbe9622db3b2ce42d975b55f972b21ac"
]
},
"sort": [
0,
1100.0,
0,
63221,
"839a84f5c5dc1137203c9f6a13f996cb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aec154b7bd9c71fc7c698bb03c043908",
"_score": 1100.0,
"_source": {
"id": "aec154b7bd9c71fc7c698bb03c043908",
"autoIncrement": 63105.0
},
"fields": {
"displayGroup": [
"3cafd26c7170da8f5af5345d26ef65be"
]
},
"sort": [
0,
1100.0,
0,
63105,
"aec154b7bd9c71fc7c698bb03c043908"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "698a645beef4f7cf82db191b2e42bbaf",
"_score": 1100.0,
"_source": {
"id": "698a645beef4f7cf82db191b2e42bbaf",
"autoIncrement": 63104.0
},
"fields": {
"displayGroup": [
"c581db7a9737bf00858c167e8cc8b603"
]
},
"sort": [
0,
1100.0,
0,
63104,
"698a645beef4f7cf82db191b2e42bbaf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "72a59c6a3b9e1c3d84d2ad9a4a36f24c",
"_score": 1100.0,
"_source": {
"id": "72a59c6a3b9e1c3d84d2ad9a4a36f24c",
"autoIncrement": 62423.0
},
"fields": {
"displayGroup": [
"eb45147ef99beb485bee52942c7607d1"
]
},
"sort": [
0,
1100.0,
0,
62423,
"72a59c6a3b9e1c3d84d2ad9a4a36f24c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "39f9bf1cab0a85432bd81db2a7ba288b",
"_score": 1100.0,
"_source": {
"id": "39f9bf1cab0a85432bd81db2a7ba288b",
"autoIncrement": 62422.0
},
"fields": {
"displayGroup": [
"a818de8969563ddb97e3b9666e6b3c25"
]
},
"sort": [
0,
1100.0,
0,
62422,
"39f9bf1cab0a85432bd81db2a7ba288b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "687049161bdd6a59bcde9f58dd74ac8b",
"_score": 1100.0,
"_source": {
"id": "687049161bdd6a59bcde9f58dd74ac8b",
"autoIncrement": 62421.0
},
"fields": {
"displayGroup": [
"262bda50a4eec626ce8084c416e24aca"
]
},
"sort": [
0,
1100.0,
0,
62421,
"687049161bdd6a59bcde9f58dd74ac8b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3199646bb42beccd1dc3fdf9b7b26752",
"_score": 1100.0,
"_source": {
"id": "3199646bb42beccd1dc3fdf9b7b26752",
"autoIncrement": 43438.0
},
"fields": {
"displayGroup": [
"1698d7a3074c82dab7cd53a5c0fee1da"
]
},
"sort": [
0,
1100.0,
0,
43438,
"3199646bb42beccd1dc3fdf9b7b26752"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "79866eabb2d2959b90c4cd655382e6a7",
"_score": 1100.0,
"_source": {
"id": "79866eabb2d2959b90c4cd655382e6a7",
"autoIncrement": 43437.0
},
"fields": {
"displayGroup": [
"d04145cedb1b0310588bc768f716aa27"
]
},
"sort": [
0,
1100.0,
0,
43437,
"79866eabb2d2959b90c4cd655382e6a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "646222e040bd2902a506d903fd216bb8",
"_score": 1100.0,
"_source": {
"id": "646222e040bd2902a506d903fd216bb8",
"autoIncrement": 43436.0
},
"fields": {
"displayGroup": [
"8eb6cd836c1842d0c35d175d74a3eb48"
]
},
"sort": [
0,
1100.0,
0,
43436,
"646222e040bd2902a506d903fd216bb8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "42222bfd483a88a78ea05eaf2aca2b68",
"_score": 1100.0,
"_source": {
"id": "42222bfd483a88a78ea05eaf2aca2b68",
"autoIncrement": 43430.0
},
"fields": {
"displayGroup": [
"bbef9c41b4483a033ce10a49c4155380"
]
},
"sort": [
0,
1100.0,
0,
43430,
"42222bfd483a88a78ea05eaf2aca2b68"
]
}
]
},
"aggregations": {
"total-count": {
"value": 205
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.04 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":"9a835274ecddcc622a6f4c47d102d6e0"}},{"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"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"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": "9a835274ecddcc622a6f4c47d102d6e0"
}
},
{
"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"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"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": 205,
"min": 26.0,
"max": 578.0,
"avg": 140.50243902439024,
"sum": 28803.0
},
"rating-exists": {
"doc_count": 205,
"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": "d911a3bcb632c3cd6fc95ba75c80ee67",
"manufacturer-count-filter.key": "d911a3bcb632c3cd6fc95ba75c80ee67"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2e30356d97a7f9b781e52c96f19f58e3",
"manufacturer-count-filter.key": "2e30356d97a7f9b781e52c96f19f58e3"
},
"doc_count": 13
},
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 10
},
{
"key": {
"manufacturer-count-filter.sorting": "5f3a897d0545c96e4d639d12b4e1dedb",
"manufacturer-count-filter.key": "5f3a897d0545c96e4d639d12b4e1dedb"
},
"doc_count": 18
},
{
"key": {
"manufacturer-count-filter.sorting": "69743c9e60e48b992af6fe3e952e1c52",
"manufacturer-count-filter.key": "69743c9e60e48b992af6fe3e952e1c52"
},
"doc_count": 20
},
{
"key": {
"manufacturer-count-filter.sorting": "76638a9a6947ed826ef9983b5593977b",
"manufacturer-count-filter.key": "76638a9a6947ed826ef9983b5593977b"
},
"doc_count": 32
},
{
"key": {
"manufacturer-count-filter.sorting": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"doc_count": 39
},
{
"key": {
"manufacturer-count-filter.sorting": "d911a3bcb632c3cd6fc95ba75c80ee67",
"manufacturer-count-filter.key": "d911a3bcb632c3cd6fc95ba75c80ee67"
},
"doc_count": 1
}
]
},
"bool-reduced": {
"doc_count": 8,
"bool-reduced": {
"value": 8
}
},
"width": {
"count": 80,
"min": 218.0,
"max": 593.0,
"avg": 427.6375,
"sum": 34211.0
},
"width-stats": {
"doc_count": 80,
"width-stats": {
"count": 80,
"min": 218.0,
"max": 593.0,
"avg": 427.6375,
"sum": 34211.0
}
},
"height": {
"count": 189,
"min": 260.0,
"max": 935.0,
"avg": 559.7566137566138,
"sum": 105794.0
},
"height-stats": {
"doc_count": 189,
"height-stats": {
"count": 189,
"min": 260.0,
"max": 935.0,
"avg": 559.7566137566138,
"sum": 105794.0
}
},
"tiefe": {
"count": 80,
"min": 210.0,
"max": 530.0,
"avg": 328.1,
"sum": 26248.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Wertstoffsammler",
"multi-typModel.key": "Wertstoffsammler"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Abfallsammler",
"multi-typModel.key": "Abfallsammler"
},
"doc_count": 157
},
{
"key": {
"multi-typModel.sorting": "M\u00fcllgro\u00dfbeh\u00e4lter",
"multi-typModel.key": "M\u00fcllgro\u00dfbeh\u00e4lter"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Sicherheitspapierk\u00f6rbe",
"multi-typModel.key": "Sicherheitspapierk\u00f6rbe"
},
"doc_count": 33
},
{
"key": {
"multi-typModel.sorting": "Wertstoffsammler",
"multi-typModel.key": "Wertstoffsammler"
},
"doc_count": 14
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 23
},
{
"key": {
"multi-farbe.sorting": "Edelstahl (Fingerprint Proof)",
"multi-farbe.key": "Edelstahl (Fingerprint Proof)"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "Edelstahl\/schwarz",
"multi-farbe.key": "Edelstahl\/schwarz"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "anthrazit",
"multi-farbe.key": "anthrazit"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "beige",
"multi-farbe.key": "beige"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "blau",
"multi-farbe.key": "blau"
},
"doc_count": 8
},
{
"key": {
"multi-farbe.sorting": "bordeaux",
"multi-farbe.key": "bordeaux"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "enzianblau",
"multi-farbe.key": "enzianblau"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "gelb",
"multi-farbe.key": "gelb"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "gold",
"multi-farbe.key": "gold"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "grau",
"multi-farbe.key": "grau"
},
"doc_count": 10
},
{
"key": {
"multi-farbe.sorting": "hellgrau",
"multi-farbe.key": "hellgrau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "lichtgrau",
"multi-farbe.key": "lichtgrau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 16
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 34
},
{
"key": {
"multi-farbe.sorting": "silber",
"multi-farbe.key": "silber"
},
"doc_count": 16
},
{
"key": {
"multi-farbe.sorting": "silbermetallic",
"multi-farbe.key": "silbermetallic"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "tiefschwarz",
"multi-farbe.key": "tiefschwarz"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 13
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 27
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Edelstahl",
"multi-material.key": "Edelstahl"
},
"doc_count": 31
},
{
"key": {
"multi-material.sorting": "Fiberglas",
"multi-material.key": "Fiberglas"
},
"doc_count": 1
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 72
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 83
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 5
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "d6f4440b8633f973d33c78928bdac2e1",
"doc_count": 39
},
{
"key": "76638a9a6947ed826ef9983b5593977b",
"doc_count": 32
},
{
"key": "69743c9e60e48b992af6fe3e952e1c52",
"doc_count": 20
},
{
"key": "5f3a897d0545c96e4d639d12b4e1dedb",
"doc_count": 18
},
{
"key": "2e30356d97a7f9b781e52c96f19f58e3",
"doc_count": 13
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 10
},
{
"key": "d911a3bcb632c3cd6fc95ba75c80ee67",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|