| 1 |
17.22 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"a37f3e4a8f5e19d03dfc78626b8312bf"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":192,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 542,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "c5903599ff73c543807ae29f4afda7bc",
"_score": 1100.0,
"_source": {
"id": "c5903599ff73c543807ae29f4afda7bc",
"autoIncrement": 137222.0
},
"fields": {
"displayGroup": [
"b1948fe46b96f405f8ae83a27f37373b"
]
},
"sort": [
0,
1100.0,
0,
137222,
"c5903599ff73c543807ae29f4afda7bc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c0eb51aab54630df894962748b7e871",
"_score": 1100.0,
"_source": {
"id": "3c0eb51aab54630df894962748b7e871",
"autoIncrement": 137221.0
},
"fields": {
"displayGroup": [
"d801218c82b83cc88cebd49c44cfea94"
]
},
"sort": [
0,
1100.0,
0,
137221,
"3c0eb51aab54630df894962748b7e871"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dacc2773d447997b18f434ff5410dd67",
"_score": 1100.0,
"_source": {
"id": "dacc2773d447997b18f434ff5410dd67",
"autoIncrement": 135204.0
},
"fields": {
"displayGroup": [
"2fcef0cb5d39b8463c3b47c9ad113077"
]
},
"sort": [
0,
1100.0,
0,
135204,
"dacc2773d447997b18f434ff5410dd67"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9087257eee74ca9b70ae04651bbe3a09",
"_score": 1100.0,
"_source": {
"id": "9087257eee74ca9b70ae04651bbe3a09",
"autoIncrement": 135180.0
},
"fields": {
"displayGroup": [
"92448cfce1d8624f0491150294932b52"
]
},
"sort": [
0,
1100.0,
0,
135180,
"9087257eee74ca9b70ae04651bbe3a09"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "588ecf10f7220b353b5063cdd235a89c",
"_score": 1100.0,
"_source": {
"id": "588ecf10f7220b353b5063cdd235a89c",
"autoIncrement": 135179.0
},
"fields": {
"displayGroup": [
"b760503938982936438593f5508902f0"
]
},
"sort": [
0,
1100.0,
0,
135179,
"588ecf10f7220b353b5063cdd235a89c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "da100468efbea7868d13300accf3bfb4",
"_score": 1100.0,
"_source": {
"id": "da100468efbea7868d13300accf3bfb4",
"autoIncrement": 135178.0
},
"fields": {
"displayGroup": [
"112ef7eaa8efc267414b93f314832888"
]
},
"sort": [
0,
1100.0,
0,
135178,
"da100468efbea7868d13300accf3bfb4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8aad87d1ef2c86b81f87bc81065f946a",
"_score": 1100.0,
"_source": {
"id": "8aad87d1ef2c86b81f87bc81065f946a",
"autoIncrement": 135177.0
},
"fields": {
"displayGroup": [
"7c9f98fe10aa93c9f33f2794b4126028"
]
},
"sort": [
0,
1100.0,
0,
135177,
"8aad87d1ef2c86b81f87bc81065f946a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e98ac6e2ac6ad354c68a36664d9ed8c5",
"_score": 1100.0,
"_source": {
"id": "e98ac6e2ac6ad354c68a36664d9ed8c5",
"autoIncrement": 135174.0
},
"fields": {
"displayGroup": [
"9e8f9a2a87f8bf97ae9c1c66c195c48e"
]
},
"sort": [
0,
1100.0,
0,
135174,
"e98ac6e2ac6ad354c68a36664d9ed8c5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e2ffd5c6a110f11ad83254d6162635ef",
"_score": 1100.0,
"_source": {
"id": "e2ffd5c6a110f11ad83254d6162635ef",
"autoIncrement": 135173.0
},
"fields": {
"displayGroup": [
"ae65be7158df13ece2abfcc9f2a0ac98"
]
},
"sort": [
0,
1100.0,
0,
135173,
"e2ffd5c6a110f11ad83254d6162635ef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3b9e0e4bc29e4605b966ce456e11deb6",
"_score": 1100.0,
"_source": {
"id": "3b9e0e4bc29e4605b966ce456e11deb6",
"autoIncrement": 135172.0
},
"fields": {
"displayGroup": [
"965236934782ff1cae1c4b7042a4bd67"
]
},
"sort": [
0,
1100.0,
0,
135172,
"3b9e0e4bc29e4605b966ce456e11deb6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e4a45980c67f84eab15e74b587340df3",
"_score": 1100.0,
"_source": {
"id": "e4a45980c67f84eab15e74b587340df3",
"autoIncrement": 135171.0
},
"fields": {
"displayGroup": [
"0d2585bf64b572d7e779ee75c6a749cd"
]
},
"sort": [
0,
1100.0,
0,
135171,
"e4a45980c67f84eab15e74b587340df3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "002b7d4f6dc0b20b61d688682f5a0a0e",
"_score": 1100.0,
"_source": {
"id": "002b7d4f6dc0b20b61d688682f5a0a0e",
"autoIncrement": 135170.0
},
"fields": {
"displayGroup": [
"5a6bb65f7bc1f454527b5ffd06f1f075"
]
},
"sort": [
0,
1100.0,
0,
135170,
"002b7d4f6dc0b20b61d688682f5a0a0e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c804f38c54cdb0b33540aca0c4074dd",
"_score": 1100.0,
"_source": {
"id": "2c804f38c54cdb0b33540aca0c4074dd",
"autoIncrement": 135169.0
},
"fields": {
"displayGroup": [
"7a7b1d9b53a9240e1796e22736c62595"
]
},
"sort": [
0,
1100.0,
0,
135169,
"2c804f38c54cdb0b33540aca0c4074dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c17027fdb241a33b292929953162bc6",
"_score": 1100.0,
"_source": {
"id": "3c17027fdb241a33b292929953162bc6",
"autoIncrement": 135168.0
},
"fields": {
"displayGroup": [
"bfbc738de6609b12a25dd1c0ca1e74a8"
]
},
"sort": [
0,
1100.0,
0,
135168,
"3c17027fdb241a33b292929953162bc6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ba7a22efc5b762ff46f4a8d720da7a7a",
"_score": 1100.0,
"_source": {
"id": "ba7a22efc5b762ff46f4a8d720da7a7a",
"autoIncrement": 135167.0
},
"fields": {
"displayGroup": [
"8ad077d7e78cb8c674a17155b4fc8ed4"
]
},
"sort": [
0,
1100.0,
0,
135167,
"ba7a22efc5b762ff46f4a8d720da7a7a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0251603ded587cac768a1814511bec41",
"_score": 1100.0,
"_source": {
"id": "0251603ded587cac768a1814511bec41",
"autoIncrement": 135166.0
},
"fields": {
"displayGroup": [
"9827956b81b5c99f09db06e9da312e2f"
]
},
"sort": [
0,
1100.0,
0,
135166,
"0251603ded587cac768a1814511bec41"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bd30dac1887c79b0dfd85ec9639aaa44",
"_score": 1100.0,
"_source": {
"id": "bd30dac1887c79b0dfd85ec9639aaa44",
"autoIncrement": 135165.0
},
"fields": {
"displayGroup": [
"84828431d7dcda83fd601ad3c55cc144"
]
},
"sort": [
0,
1100.0,
0,
135165,
"bd30dac1887c79b0dfd85ec9639aaa44"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bc51e764ddf60aaf727e250a91a0b3ea",
"_score": 1100.0,
"_source": {
"id": "bc51e764ddf60aaf727e250a91a0b3ea",
"autoIncrement": 135164.0
},
"fields": {
"displayGroup": [
"42653da2ecf39951b95bf329176243cc"
]
},
"sort": [
0,
1100.0,
0,
135164,
"bc51e764ddf60aaf727e250a91a0b3ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4feed8ae140ce546c2e07d3370395de2",
"_score": 1100.0,
"_source": {
"id": "4feed8ae140ce546c2e07d3370395de2",
"autoIncrement": 135163.0
},
"fields": {
"displayGroup": [
"0c9fc387816e30b274cf7aea9ea9d5f0"
]
},
"sort": [
0,
1100.0,
0,
135163,
"4feed8ae140ce546c2e07d3370395de2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "65205595b7dfd6c529df55c3c7209f49",
"_score": 1100.0,
"_source": {
"id": "65205595b7dfd6c529df55c3c7209f49",
"autoIncrement": 135162.0
},
"fields": {
"displayGroup": [
"169b8335f067d7383e04f100caaa5568"
]
},
"sort": [
0,
1100.0,
0,
135162,
"65205595b7dfd6c529df55c3c7209f49"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "03875874aeecaf6d550074b262479bd5",
"_score": 1100.0,
"_source": {
"id": "03875874aeecaf6d550074b262479bd5",
"autoIncrement": 135161.0
},
"fields": {
"displayGroup": [
"e8033ea5d4065048ff11ca9faf4c0042"
]
},
"sort": [
0,
1100.0,
0,
135161,
"03875874aeecaf6d550074b262479bd5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4929073d45e1b52b75c8e3d6ce21e471",
"_score": 1100.0,
"_source": {
"id": "4929073d45e1b52b75c8e3d6ce21e471",
"autoIncrement": 135160.0
},
"fields": {
"displayGroup": [
"d7944ddb6e24d3cdac0f149bd9242913"
]
},
"sort": [
0,
1100.0,
0,
135160,
"4929073d45e1b52b75c8e3d6ce21e471"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5014353666d330aaa454943cf9188e35",
"_score": 1100.0,
"_source": {
"id": "5014353666d330aaa454943cf9188e35",
"autoIncrement": 135158.0
},
"fields": {
"displayGroup": [
"cb034778cb9e67325da7e646997e0004"
]
},
"sort": [
0,
1100.0,
0,
135158,
"5014353666d330aaa454943cf9188e35"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "959fdb97802af2e57c8b858c66ee5806",
"_score": 1100.0,
"_source": {
"id": "959fdb97802af2e57c8b858c66ee5806",
"autoIncrement": 135157.0
},
"fields": {
"displayGroup": [
"d1cdcc8778da9e38df70e5ce8092e6c5"
]
},
"sort": [
0,
1100.0,
0,
135157,
"959fdb97802af2e57c8b858c66ee5806"
]
}
]
},
"aggregations": {
"total-count": {
"value": 542
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.69 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"a37f3e4a8f5e19d03dfc78626b8312bf"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "a37f3e4a8f5e19d03dfc78626b8312bf"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 542,
"min": 2.0,
"max": 122.0,
"avg": 13.272011070110702,
"sum": 7193.43
},
"rating-exists": {
"doc_count": 542,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1a883793b8738cf7ab301f8d7c8d5b91",
"manufacturer-count-filter.key": "1a883793b8738cf7ab301f8d7c8d5b91"
},
"doc_count": 2
},
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"doc_count": 506
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 384,
"min": 20.0,
"max": 660.0,
"avg": 263.640625,
"sum": 101238.0
},
"width-stats": {
"doc_count": 384,
"width-stats": {
"count": 384,
"min": 20.0,
"max": 660.0,
"avg": 263.640625,
"sum": 101238.0
}
},
"height": {
"count": 264,
"min": 20.0,
"max": 1000.0,
"avg": 211.62121212121212,
"sum": 55868.0
},
"height-stats": {
"doc_count": 264,
"height-stats": {
"count": 264,
"min": 20.0,
"max": 1000.0,
"avg": 211.62121212121212,
"sum": 55868.0
}
},
"tiefe": {
"count": 1,
"min": 430.0,
"max": 430.0,
"avg": 430.0,
"sum": 430.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Hinweisschilder",
"multi-typModel.key": "Zubeh\u00f6r Hinweisschilder"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Bodenmarkieraufkleber",
"multi-typModel.key": "Bodenmarkieraufkleber"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Brandschutzkennzeichen",
"multi-typModel.key": "Brandschutzkennzeichen"
},
"doc_count": 33
},
{
"key": {
"multi-typModel.sorting": "Gebotsschilder",
"multi-typModel.key": "Gebotsschilder"
},
"doc_count": 62
},
{
"key": {
"multi-typModel.sorting": "Parkplatzkennzeichnung",
"multi-typModel.key": "Parkplatzkennzeichnung"
},
"doc_count": 31
},
{
"key": {
"multi-typModel.sorting": "Piktogramme \/ Beschrift.",
"multi-typModel.key": "Piktogramme \/ Beschrift."
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Pr\u00fcf- und Inventarplaketten",
"multi-typModel.key": "Pr\u00fcf- und Inventarplaketten"
},
"doc_count": 13
},
{
"key": {
"multi-typModel.sorting": "Pr\u00fcfplaketten",
"multi-typModel.key": "Pr\u00fcfplaketten"
},
"doc_count": 24
},
{
"key": {
"multi-typModel.sorting": "Rettungswegkennzeichen",
"multi-typModel.key": "Rettungswegkennzeichen"
},
"doc_count": 105
},
{
"key": {
"multi-typModel.sorting": "Sicherheitsbeschilderung",
"multi-typModel.key": "Sicherheitsbeschilderung"
},
"doc_count": 30
},
{
"key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"doc_count": 64
},
{
"key": {
"multi-typModel.sorting": "Warnkennzeichnung",
"multi-typModel.key": "Warnkennzeichnung"
},
"doc_count": 125
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Abfallsammler f\u00fcr innen",
"multi-typModel.key": "Zubeh\u00f6r Abfallsammler f\u00fcr innen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Hinweisschilder",
"multi-typModel.key": "Zubeh\u00f6r Hinweisschilder"
},
"doc_count": 5
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Polyethylen",
"multi-material.key": "Polyethylen"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Alu langnachleuchtend",
"multi-material.key": "Alu langnachleuchtend"
},
"doc_count": 1
},
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 125
},
{
"key": {
"multi-material.sorting": "Aluminium langnachleuchtend",
"multi-material.key": "Aluminium langnachleuchtend"
},
"doc_count": 18
},
{
"key": {
"multi-material.sorting": "Folie",
"multi-material.key": "Folie"
},
"doc_count": 197
},
{
"key": {
"multi-material.sorting": "Folie langnachleuchtend",
"multi-material.key": "Folie langnachleuchtend"
},
"doc_count": 34
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 87
},
{
"key": {
"multi-material.sorting": "Kunststoff langnachleuchtend",
"multi-material.key": "Kunststoff langnachleuchtend"
},
"doc_count": 38
},
{
"key": {
"multi-material.sorting": "Magnetfolie",
"multi-material.key": "Magnetfolie"
},
"doc_count": 6
},
{
"key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"doc_count": 12
},
{
"key": {
"multi-material.sorting": "Polyethylen",
"multi-material.key": "Polyethylen"
},
"doc_count": 6
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c3a426735eefdce4df6537fb4b7ae301",
"doc_count": 506
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 8
},
{
"key": "1a883793b8738cf7ab301f8d7c8d5b91",
"doc_count": 2
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|