| 1 |
16.91 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":"62dc833447e7e08270ead97ad4ab5417"}},{"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": 164,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "ad264ab0930b76ce769b1e14444a76db",
"_score": 1100.0,
"_source": {
"id": "ad264ab0930b76ce769b1e14444a76db",
"autoIncrement": 39708.0
},
"fields": {
"displayGroup": [
"5952d81a18ca79f7e203b5bca410665c"
]
},
"sort": [
0,
1100.0,
0,
39708,
"ad264ab0930b76ce769b1e14444a76db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ae5580a94f4161d838feab323e1493b4",
"_score": 1100.0,
"_source": {
"id": "ae5580a94f4161d838feab323e1493b4",
"autoIncrement": 39707.0
},
"fields": {
"displayGroup": [
"13bbefe1df564d59bf573faea8f7d916"
]
},
"sort": [
0,
1100.0,
0,
39707,
"ae5580a94f4161d838feab323e1493b4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "45d561283cac7edc5f659630352ba81a",
"_score": 1100.0,
"_source": {
"id": "45d561283cac7edc5f659630352ba81a",
"autoIncrement": 39706.0
},
"fields": {
"displayGroup": [
"d3c7f45df7b85dbc29463221da3a93f7"
]
},
"sort": [
0,
1100.0,
0,
39706,
"45d561283cac7edc5f659630352ba81a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "de1d5515c95433ce148c8421e3e3f7ab",
"_score": 1100.0,
"_source": {
"id": "de1d5515c95433ce148c8421e3e3f7ab",
"autoIncrement": 39705.0
},
"fields": {
"displayGroup": [
"a4fc2aab8221e6de432e82e383500910"
]
},
"sort": [
0,
1100.0,
0,
39705,
"de1d5515c95433ce148c8421e3e3f7ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e3ae4979962d278b8e06c3210a39577",
"_score": 1100.0,
"_source": {
"id": "9e3ae4979962d278b8e06c3210a39577",
"autoIncrement": 39704.0
},
"fields": {
"displayGroup": [
"d341a03d2c392a79cae3ccc86cc9efd7"
]
},
"sort": [
0,
1100.0,
0,
39704,
"9e3ae4979962d278b8e06c3210a39577"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3a158f86431a82756c33134fd16cbde8",
"_score": 1100.0,
"_source": {
"id": "3a158f86431a82756c33134fd16cbde8",
"autoIncrement": 39703.0
},
"fields": {
"displayGroup": [
"bca6e73d037ddf24c21659f84236d0d9"
]
},
"sort": [
0,
1100.0,
0,
39703,
"3a158f86431a82756c33134fd16cbde8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4aa76ec2d43364fbf46936b9232ec497",
"_score": 1100.0,
"_source": {
"id": "4aa76ec2d43364fbf46936b9232ec497",
"autoIncrement": 39702.0
},
"fields": {
"displayGroup": [
"88437c70018a572175d4ed3067b1727a"
]
},
"sort": [
0,
1100.0,
0,
39702,
"4aa76ec2d43364fbf46936b9232ec497"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "26d202eea6bf9f9b2386def663b2a69a",
"_score": 1100.0,
"_source": {
"id": "26d202eea6bf9f9b2386def663b2a69a",
"autoIncrement": 39701.0
},
"fields": {
"displayGroup": [
"78badf9ec605620c55736beec180d950"
]
},
"sort": [
0,
1100.0,
0,
39701,
"26d202eea6bf9f9b2386def663b2a69a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d528f72ae9bec1dba9b43f5975f81aad",
"_score": 1100.0,
"_source": {
"id": "d528f72ae9bec1dba9b43f5975f81aad",
"autoIncrement": 39700.0
},
"fields": {
"displayGroup": [
"c7b447c5cc5a20377d19dafc5a2e3cf1"
]
},
"sort": [
0,
1100.0,
0,
39700,
"d528f72ae9bec1dba9b43f5975f81aad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff57e96fb835052670b6e5cd1693680a",
"_score": 1100.0,
"_source": {
"id": "ff57e96fb835052670b6e5cd1693680a",
"autoIncrement": 39699.0
},
"fields": {
"displayGroup": [
"d10143fa994b9dfc0f80ee758b4e1766"
]
},
"sort": [
0,
1100.0,
0,
39699,
"ff57e96fb835052670b6e5cd1693680a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c07131e064f779aa5b3b062a14b105bc",
"_score": 1100.0,
"_source": {
"id": "c07131e064f779aa5b3b062a14b105bc",
"autoIncrement": 39698.0
},
"fields": {
"displayGroup": [
"a9b05cce6edef1643306080d1b8231aa"
]
},
"sort": [
0,
1100.0,
0,
39698,
"c07131e064f779aa5b3b062a14b105bc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "409728df23752a4c29b93dfe96281794",
"_score": 1100.0,
"_source": {
"id": "409728df23752a4c29b93dfe96281794",
"autoIncrement": 30524.0
},
"fields": {
"displayGroup": [
"6256ca3736729a2b769b0ebadff107cb"
]
},
"sort": [
0,
1100.0,
0,
30524,
"409728df23752a4c29b93dfe96281794"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3191bdc2ccead0df251c420efc804949",
"_score": 1100.0,
"_source": {
"id": "3191bdc2ccead0df251c420efc804949",
"autoIncrement": 30523.0
},
"fields": {
"displayGroup": [
"6c1e39bfc231e9b2407f53e9c449b48b"
]
},
"sort": [
0,
1100.0,
0,
30523,
"3191bdc2ccead0df251c420efc804949"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e6145efb6f61e2a0155061b6755b3b45",
"_score": 1100.0,
"_source": {
"id": "e6145efb6f61e2a0155061b6755b3b45",
"autoIncrement": 30522.0
},
"fields": {
"displayGroup": [
"368cdec574c823b4a28592279e641de8"
]
},
"sort": [
0,
1100.0,
0,
30522,
"e6145efb6f61e2a0155061b6755b3b45"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "930508cf8af338f1e8db084d530fc2ff",
"_score": 1100.0,
"_source": {
"id": "930508cf8af338f1e8db084d530fc2ff",
"autoIncrement": 30521.0
},
"fields": {
"displayGroup": [
"43373854bb45dd2e931cf0a9989878f8"
]
},
"sort": [
0,
1100.0,
0,
30521,
"930508cf8af338f1e8db084d530fc2ff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9164ea2be92d7d2b6ccb769f8b66cea0",
"_score": 1100.0,
"_source": {
"id": "9164ea2be92d7d2b6ccb769f8b66cea0",
"autoIncrement": 30520.0
},
"fields": {
"displayGroup": [
"5f0de94823804a9b213ef95cabd4e5b7"
]
},
"sort": [
0,
1100.0,
0,
30520,
"9164ea2be92d7d2b6ccb769f8b66cea0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f0a7e57b4e6cfa89285bc433a26f79d8",
"_score": 1100.0,
"_source": {
"id": "f0a7e57b4e6cfa89285bc433a26f79d8",
"autoIncrement": 30519.0
},
"fields": {
"displayGroup": [
"d883145513a94d1c1c91c03087217c49"
]
},
"sort": [
0,
1100.0,
0,
30519,
"f0a7e57b4e6cfa89285bc433a26f79d8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0672d84406f49b858a1f343794c3185c",
"_score": 1100.0,
"_source": {
"id": "0672d84406f49b858a1f343794c3185c",
"autoIncrement": 30518.0
},
"fields": {
"displayGroup": [
"1a3504f096f7478b6459ecedc84004fd"
]
},
"sort": [
0,
1100.0,
0,
30518,
"0672d84406f49b858a1f343794c3185c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3d5070694b9e887554ff1a9ac23dc7cf",
"_score": 1100.0,
"_source": {
"id": "3d5070694b9e887554ff1a9ac23dc7cf",
"autoIncrement": 30517.0
},
"fields": {
"displayGroup": [
"e593b1e8ba992e8a0bdb318c16faad48"
]
},
"sort": [
0,
1100.0,
0,
30517,
"3d5070694b9e887554ff1a9ac23dc7cf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "304cf1098e5e5dde124cdbee68a25be3",
"_score": 1100.0,
"_source": {
"id": "304cf1098e5e5dde124cdbee68a25be3",
"autoIncrement": 30516.0
},
"fields": {
"displayGroup": [
"50499d4dcc1b0efe6c6fce856451eaa2"
]
},
"sort": [
0,
1100.0,
0,
30516,
"304cf1098e5e5dde124cdbee68a25be3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5af0a849b1bf0a275dfece1e4e104c38",
"_score": 1100.0,
"_source": {
"id": "5af0a849b1bf0a275dfece1e4e104c38",
"autoIncrement": 30515.0
},
"fields": {
"displayGroup": [
"b2071211daf13eae308c0a09d8b65b3f"
]
},
"sort": [
0,
1100.0,
0,
30515,
"5af0a849b1bf0a275dfece1e4e104c38"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "434e1b1def2f8d17e156047d7e351070",
"_score": 1100.0,
"_source": {
"id": "434e1b1def2f8d17e156047d7e351070",
"autoIncrement": 30513.0
},
"fields": {
"displayGroup": [
"c9d86ec0a287aae32c7eaee5ebd1bba3"
]
},
"sort": [
0,
1100.0,
0,
30513,
"434e1b1def2f8d17e156047d7e351070"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff88206a41878aabe09d4dfe4adeafcb",
"_score": 1100.0,
"_source": {
"id": "ff88206a41878aabe09d4dfe4adeafcb",
"autoIncrement": 30512.0
},
"fields": {
"displayGroup": [
"a5314ae6f5722f31b34f77f3994d2815"
]
},
"sort": [
0,
1100.0,
0,
30512,
"ff88206a41878aabe09d4dfe4adeafcb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d49d64679877a14672a42f2eb72e0cc",
"_score": 1100.0,
"_source": {
"id": "8d49d64679877a14672a42f2eb72e0cc",
"autoIncrement": 30511.0
},
"fields": {
"displayGroup": [
"9309edfdebe1792b7e1f20626f2fba16"
]
},
"sort": [
0,
1100.0,
0,
30511,
"8d49d64679877a14672a42f2eb72e0cc"
]
}
]
},
"aggregations": {
"total-count": {
"value": 164
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.20 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":"62dc833447e7e08270ead97ad4ab5417"}},{"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-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": "62dc833447e7e08270ead97ad4ab5417"
}
},
{
"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-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": 164,
"min": 185.0,
"max": 2971.0,
"avg": 815.614756097561,
"sum": 133760.82
},
"rating-exists": {
"doc_count": 164,
"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": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 70
},
{
"key": {
"manufacturer-count-filter.sorting": "6face5c8353d05da0eeacdd4ef058334",
"manufacturer-count-filter.key": "6face5c8353d05da0eeacdd4ef058334"
},
"doc_count": 90
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 4
}
]
},
"bool-reduced": {
"doc_count": 5,
"bool-reduced": {
"value": 5
}
},
"width": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
},
"width-stats": {
"doc_count": 164,
"width-stats": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
}
},
"height": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
},
"height-stats": {
"doc_count": 163,
"height-stats": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
}
},
"tiefe": {
"count": 164,
"min": 380.0,
"max": 960.0,
"avg": 564.170731707317,
"sum": 92524.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "H\u00e4ngeregistraturschr\u00e4nke",
"multi-typModel.key": "H\u00e4ngeregistraturschr\u00e4nke"
},
"doc_count": 90
},
{
"key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"doc_count": 74
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 150
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 10
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "6face5c8353d05da0eeacdd4ef058334",
"doc_count": 90
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 70
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|