| 1 |
18.78 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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":288,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 376,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "5d6efa0053d764bbc73a0255c38d347c",
"_score": 1100.0,
"_source": {
"id": "5d6efa0053d764bbc73a0255c38d347c",
"autoIncrement": 114661.0
},
"fields": {
"displayGroup": [
"67af8ebf021cc5391214418af8aa7b27"
]
},
"sort": [
0,
1100.0,
0,
114661,
"5d6efa0053d764bbc73a0255c38d347c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c48fee1f97fabb5ff15e2173190ca7b",
"_score": 1100.0,
"_source": {
"id": "3c48fee1f97fabb5ff15e2173190ca7b",
"autoIncrement": 114660.0
},
"fields": {
"displayGroup": [
"6e1bf6d9baaf97e1240c61fc8e467169"
]
},
"sort": [
0,
1100.0,
0,
114660,
"3c48fee1f97fabb5ff15e2173190ca7b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7235506827d9deff292566570d4492ea",
"_score": 1100.0,
"_source": {
"id": "7235506827d9deff292566570d4492ea",
"autoIncrement": 114659.0
},
"fields": {
"displayGroup": [
"5ce190c0ba79a958082df3279b1d46bd"
]
},
"sort": [
0,
1100.0,
0,
114659,
"7235506827d9deff292566570d4492ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a4c17ccf0b4b3cdf1e462b84c14b4234",
"_score": 1100.0,
"_source": {
"id": "a4c17ccf0b4b3cdf1e462b84c14b4234",
"autoIncrement": 114658.0
},
"fields": {
"displayGroup": [
"1ed827afb642b941a50e694fd3e5ad65"
]
},
"sort": [
0,
1100.0,
0,
114658,
"a4c17ccf0b4b3cdf1e462b84c14b4234"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8e8b633a362d4157347b308e3117c9d2",
"_score": 1100.0,
"_source": {
"id": "8e8b633a362d4157347b308e3117c9d2",
"autoIncrement": 114657.0
},
"fields": {
"displayGroup": [
"157770f380f9ff12c97a850c7377f43a"
]
},
"sort": [
0,
1100.0,
0,
114657,
"8e8b633a362d4157347b308e3117c9d2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "726b6cf2d1ae4cfe0caf8975b312f4c6",
"_score": 1100.0,
"_source": {
"id": "726b6cf2d1ae4cfe0caf8975b312f4c6",
"autoIncrement": 114656.0
},
"fields": {
"displayGroup": [
"baca51d9cd34c5c96692ab7d0d6aeed8"
]
},
"sort": [
0,
1100.0,
0,
114656,
"726b6cf2d1ae4cfe0caf8975b312f4c6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "86081f9f750916c72c0888edc733c53b",
"_score": 1100.0,
"_source": {
"id": "86081f9f750916c72c0888edc733c53b",
"autoIncrement": 114655.0
},
"fields": {
"displayGroup": [
"3facbcd0d37aa0c2759d7fe13312bc82"
]
},
"sort": [
0,
1100.0,
0,
114655,
"86081f9f750916c72c0888edc733c53b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3dff7a5868ad7e36b248296a65154623",
"_score": 1100.0,
"_source": {
"id": "3dff7a5868ad7e36b248296a65154623",
"autoIncrement": 114654.0
},
"fields": {
"displayGroup": [
"94641f8f6bbe75e9f39f6b51b743b434"
]
},
"sort": [
0,
1100.0,
0,
114654,
"3dff7a5868ad7e36b248296a65154623"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e957f22df6e54c220d62f16c883aabaf",
"_score": 1100.0,
"_source": {
"id": "e957f22df6e54c220d62f16c883aabaf",
"autoIncrement": 114653.0
},
"fields": {
"displayGroup": [
"b21eef93dbcbfe7f53b3c7436b9765e5"
]
},
"sort": [
0,
1100.0,
0,
114653,
"e957f22df6e54c220d62f16c883aabaf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2d582afb03086e3fff27a1888b1e881f",
"_score": 1100.0,
"_source": {
"id": "2d582afb03086e3fff27a1888b1e881f",
"autoIncrement": 114652.0
},
"fields": {
"displayGroup": [
"f0472e30c1add9ed17f320016ce4188a"
]
},
"sort": [
0,
1100.0,
0,
114652,
"2d582afb03086e3fff27a1888b1e881f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fd0ca01be0ff83e5a5a112c75354bfb1",
"_score": 1100.0,
"_source": {
"id": "fd0ca01be0ff83e5a5a112c75354bfb1",
"autoIncrement": 114651.0
},
"fields": {
"displayGroup": [
"46b66070eac66b1410e34fe7abc367ed"
]
},
"sort": [
0,
1100.0,
0,
114651,
"fd0ca01be0ff83e5a5a112c75354bfb1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9daf7a3c753d3216573d5c4749366d7c",
"_score": 1100.0,
"_source": {
"id": "9daf7a3c753d3216573d5c4749366d7c",
"autoIncrement": 114650.0
},
"fields": {
"displayGroup": [
"d4f8d02ab83171d64ab5da9cc0d551ce"
]
},
"sort": [
0,
1100.0,
0,
114650,
"9daf7a3c753d3216573d5c4749366d7c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "702ccf20795654934b44eaf596810f73",
"_score": 1100.0,
"_source": {
"id": "702ccf20795654934b44eaf596810f73",
"autoIncrement": 114649.0
},
"fields": {
"displayGroup": [
"bc9676ca1af967282e8692ab4d2b28ec"
]
},
"sort": [
0,
1100.0,
0,
114649,
"702ccf20795654934b44eaf596810f73"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "24c5efc75bbc8f8a60f0d81541615fd8",
"_score": 1100.0,
"_source": {
"id": "24c5efc75bbc8f8a60f0d81541615fd8",
"autoIncrement": 114648.0
},
"fields": {
"displayGroup": [
"2ef6c1a2e6a0b74bdea479b951e46729"
]
},
"sort": [
0,
1100.0,
0,
114648,
"24c5efc75bbc8f8a60f0d81541615fd8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0c61f9fd8c0773dde7144d79da973576",
"_score": 1100.0,
"_source": {
"id": "0c61f9fd8c0773dde7144d79da973576",
"autoIncrement": 114647.0
},
"fields": {
"displayGroup": [
"cdec6facd0e2a19f0c6d02590ec976aa"
]
},
"sort": [
0,
1100.0,
0,
114647,
"0c61f9fd8c0773dde7144d79da973576"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "709b08c5a1a6b425bb8e789a1debb330",
"_score": 1100.0,
"_source": {
"id": "709b08c5a1a6b425bb8e789a1debb330",
"autoIncrement": 114646.0
},
"fields": {
"displayGroup": [
"0b5fd31d2cb5fdc6277ca3436038a2cd"
]
},
"sort": [
0,
1100.0,
0,
114646,
"709b08c5a1a6b425bb8e789a1debb330"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32c8d7e3fa309054cfa60418fe8af424",
"_score": 1100.0,
"_source": {
"id": "32c8d7e3fa309054cfa60418fe8af424",
"autoIncrement": 114645.0
},
"fields": {
"displayGroup": [
"92e53badeecc67d6331989960186efc8"
]
},
"sort": [
0,
1100.0,
0,
114645,
"32c8d7e3fa309054cfa60418fe8af424"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d82fa7e7aa62d1d338e8d40aebd88a7",
"_score": 1100.0,
"_source": {
"id": "6d82fa7e7aa62d1d338e8d40aebd88a7",
"autoIncrement": 114644.0
},
"fields": {
"displayGroup": [
"20a52e90cc664dc494ba9c5c18f07a57"
]
},
"sort": [
0,
1100.0,
0,
114644,
"6d82fa7e7aa62d1d338e8d40aebd88a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "317b430ba770eb89a59fb8a68035122a",
"_score": 1100.0,
"_source": {
"id": "317b430ba770eb89a59fb8a68035122a",
"autoIncrement": 114643.0
},
"fields": {
"displayGroup": [
"0eaa001edd881aae773785e2effa430b"
]
},
"sort": [
0,
1100.0,
0,
114643,
"317b430ba770eb89a59fb8a68035122a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "455c0da57dae5dd105b9ff524a2ac150",
"_score": 1100.0,
"_source": {
"id": "455c0da57dae5dd105b9ff524a2ac150",
"autoIncrement": 114642.0
},
"fields": {
"displayGroup": [
"da037a6ef8a8b823dbbd47c2eb0d7589"
]
},
"sort": [
0,
1100.0,
0,
114642,
"455c0da57dae5dd105b9ff524a2ac150"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3ad0887b2e9144f72510aa7efe73b27a",
"_score": 1100.0,
"_source": {
"id": "3ad0887b2e9144f72510aa7efe73b27a",
"autoIncrement": 114641.0
},
"fields": {
"displayGroup": [
"7d941796b056aa0d827faa64e61f7aa3"
]
},
"sort": [
0,
1100.0,
0,
114641,
"3ad0887b2e9144f72510aa7efe73b27a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed916f3a0a4a35ec9c40819f56155837",
"_score": 1100.0,
"_source": {
"id": "ed916f3a0a4a35ec9c40819f56155837",
"autoIncrement": 114640.0
},
"fields": {
"displayGroup": [
"97dcfc8ad4e2b406e6abc3316bd53f29"
]
},
"sort": [
0,
1100.0,
0,
114640,
"ed916f3a0a4a35ec9c40819f56155837"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "03ffcb58e58d31b478d16f81a0978273",
"_score": 1100.0,
"_source": {
"id": "03ffcb58e58d31b478d16f81a0978273",
"autoIncrement": 114639.0
},
"fields": {
"displayGroup": [
"a4c21fe139927f8424a738560d4655ed"
]
},
"sort": [
0,
1100.0,
0,
114639,
"03ffcb58e58d31b478d16f81a0978273"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "db883d0a5e2d116ebca2a7df89502568",
"_score": 1100.0,
"_source": {
"id": "db883d0a5e2d116ebca2a7df89502568",
"autoIncrement": 114638.0
},
"fields": {
"displayGroup": [
"6d73aa39b233cecbd2072de9d666b832"
]
},
"sort": [
0,
1100.0,
0,
114638,
"db883d0a5e2d116ebca2a7df89502568"
]
}
]
},
"aggregations": {
"total-count": {
"value": 376
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.05 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"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": "eaaf9741202be6b0122e0b700dc5ad17"
}
},
{
"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-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"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": 376,
"min": 399.0,
"max": 2379.0,
"avg": 956.7712765957447,
"sum": 359746.0
},
"rating-exists": {
"doc_count": 376,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 268
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"width": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
},
"width-stats": {
"doc_count": 352,
"width-stats": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
}
},
"height": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
},
"height-stats": {
"doc_count": 352,
"height-stats": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
}
},
"tiefe": {
"count": 352,
"min": 400.0,
"max": 1000.0,
"avg": 706.8181818181819,
"sum": 248800.0
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 4
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Grundfeld",
"multi-typModel.key": "Weitspannregale Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"doc_count": 4
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "3 St\u00fcck",
"multi-anzahlFachboeden.key": "3 St\u00fcck"
},
"doc_count": 84
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 228
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 36
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 268
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|