| 1 |
14.48 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":"13c1e288229411ca06702e1a1154b0cc"}},{"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":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 25,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "5655e1f96550cab9fd4be04579930137",
"_score": 1100.0,
"_source": {
"id": "5655e1f96550cab9fd4be04579930137",
"autoIncrement": 171132.0
},
"fields": {
"displayGroup": [
"8dad37f1011e1e8dccb6b385ee65bb8b"
]
},
"sort": [
0,
1100.0,
0,
171132,
"5655e1f96550cab9fd4be04579930137"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "29e09db70fcb8bcf7828d78cbc2686dc",
"_score": 1100.0,
"_source": {
"id": "29e09db70fcb8bcf7828d78cbc2686dc",
"autoIncrement": 145697.0
},
"fields": {
"displayGroup": [
"7665ee0e80ee8033e8bbe5db05f71262"
]
},
"sort": [
0,
1100.0,
0,
145697,
"29e09db70fcb8bcf7828d78cbc2686dc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "07aef22341607ae9d11c4ec7b82ab338",
"_score": 1100.0,
"_source": {
"id": "07aef22341607ae9d11c4ec7b82ab338",
"autoIncrement": 145523.0
},
"fields": {
"displayGroup": [
"3c01f4a467291b3e9dca7660e0ba9778"
]
},
"sort": [
0,
1100.0,
0,
145523,
"07aef22341607ae9d11c4ec7b82ab338"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f995a7d7af62bd5ef926286a54b0ca5a",
"_score": 1100.0,
"_source": {
"id": "f995a7d7af62bd5ef926286a54b0ca5a",
"autoIncrement": 145522.0
},
"fields": {
"displayGroup": [
"38a2a7ae9ffb08345a69427c56ed171a"
]
},
"sort": [
0,
1100.0,
0,
145522,
"f995a7d7af62bd5ef926286a54b0ca5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "16261706bacb9777fba5ffa7ab9335b1",
"_score": 1100.0,
"_source": {
"id": "16261706bacb9777fba5ffa7ab9335b1",
"autoIncrement": 130780.0
},
"fields": {
"displayGroup": [
"24e2b24f813611d56c071978953d584c"
]
},
"sort": [
0,
1100.0,
0,
130780,
"16261706bacb9777fba5ffa7ab9335b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84469acbf3568f014f7bf7b0fa98c4c8",
"_score": 1100.0,
"_source": {
"id": "84469acbf3568f014f7bf7b0fa98c4c8",
"autoIncrement": 130779.0
},
"fields": {
"displayGroup": [
"4658d56ec09a4405ab7726cb9ba514a1"
]
},
"sort": [
0,
1100.0,
0,
130779,
"84469acbf3568f014f7bf7b0fa98c4c8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8210c207e595822b2c5282358d4cead5",
"_score": 1100.0,
"_source": {
"id": "8210c207e595822b2c5282358d4cead5",
"autoIncrement": 130778.0
},
"fields": {
"displayGroup": [
"409bc08ea923134753d50718a7b8b7bf"
]
},
"sort": [
0,
1100.0,
0,
130778,
"8210c207e595822b2c5282358d4cead5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "52037ffac19b381290703e36d67c7a98",
"_score": 1100.0,
"_source": {
"id": "52037ffac19b381290703e36d67c7a98",
"autoIncrement": 130777.0
},
"fields": {
"displayGroup": [
"64b2fadbfb5caf1f0db7b771c3fbfebe"
]
},
"sort": [
0,
1100.0,
0,
130777,
"52037ffac19b381290703e36d67c7a98"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6ffdf316b2dd524878eb15b44ce70b6e",
"_score": 1100.0,
"_source": {
"id": "6ffdf316b2dd524878eb15b44ce70b6e",
"autoIncrement": 130747.0
},
"fields": {
"displayGroup": [
"79fd909339f9ce735547471708173ee0"
]
},
"sort": [
0,
1100.0,
0,
130747,
"6ffdf316b2dd524878eb15b44ce70b6e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9dd423bddc46d486c159fc4d50940567",
"_score": 1100.0,
"_source": {
"id": "9dd423bddc46d486c159fc4d50940567",
"autoIncrement": 130746.0
},
"fields": {
"displayGroup": [
"0501e170ac6dde73a284b2e7d74f7b84"
]
},
"sort": [
0,
1100.0,
0,
130746,
"9dd423bddc46d486c159fc4d50940567"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "00f31ebc0e5da91af40b3ad1de89ed5d",
"_score": 1100.0,
"_source": {
"id": "00f31ebc0e5da91af40b3ad1de89ed5d",
"autoIncrement": 130734.0
},
"fields": {
"displayGroup": [
"09aeeb2494424857630af79a4e68416d"
]
},
"sort": [
0,
1100.0,
0,
130734,
"00f31ebc0e5da91af40b3ad1de89ed5d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d54874140e92a17c16b49d04a036297e",
"_score": 1100.0,
"_source": {
"id": "d54874140e92a17c16b49d04a036297e",
"autoIncrement": 130733.0
},
"fields": {
"displayGroup": [
"77ccece6961d629700c36d92664f0727"
]
},
"sort": [
0,
1100.0,
0,
130733,
"d54874140e92a17c16b49d04a036297e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4079189af7607fa41c3b353202ebd25c",
"_score": 1100.0,
"_source": {
"id": "4079189af7607fa41c3b353202ebd25c",
"autoIncrement": 130732.0
},
"fields": {
"displayGroup": [
"7470d126a1e683d612cb17299cf98f8e"
]
},
"sort": [
0,
1100.0,
0,
130732,
"4079189af7607fa41c3b353202ebd25c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3b118bbc271ed4bcdf870aaef385951",
"_score": 1100.0,
"_source": {
"id": "f3b118bbc271ed4bcdf870aaef385951",
"autoIncrement": 130727.0
},
"fields": {
"displayGroup": [
"a42658f2aa1ac6689bd00b2b6f6bd13a"
]
},
"sort": [
0,
1100.0,
0,
130727,
"f3b118bbc271ed4bcdf870aaef385951"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "628cceea882a6a9c73333d7a4d306cc0",
"_score": 1100.0,
"_source": {
"id": "628cceea882a6a9c73333d7a4d306cc0",
"autoIncrement": 130726.0
},
"fields": {
"displayGroup": [
"daa76635aca875ae3fe14b457d6deda9"
]
},
"sort": [
0,
1100.0,
0,
130726,
"628cceea882a6a9c73333d7a4d306cc0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "27bbd7789a131505697153da2d141fa0",
"_score": 1100.0,
"_source": {
"id": "27bbd7789a131505697153da2d141fa0",
"autoIncrement": 130725.0
},
"fields": {
"displayGroup": [
"75d01451bf95c311496ce2a55ec0908d"
]
},
"sort": [
0,
1100.0,
0,
130725,
"27bbd7789a131505697153da2d141fa0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e8ed1a5e248d6e3bf7d4a281bc96e19c",
"_score": 1100.0,
"_source": {
"id": "e8ed1a5e248d6e3bf7d4a281bc96e19c",
"autoIncrement": 130724.0
},
"fields": {
"displayGroup": [
"bb6d31a74ba977d0628a5494684be041"
]
},
"sort": [
0,
1100.0,
0,
130724,
"e8ed1a5e248d6e3bf7d4a281bc96e19c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fffe95c2b242f8ede3127ecef1d46768",
"_score": 1100.0,
"_source": {
"id": "fffe95c2b242f8ede3127ecef1d46768",
"autoIncrement": 130723.0
},
"fields": {
"displayGroup": [
"6d0cc3a816963467c039626b4770fb34"
]
},
"sort": [
0,
1100.0,
0,
130723,
"fffe95c2b242f8ede3127ecef1d46768"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7ae780a2d3c4bbbeeddc27b5deac5b46",
"_score": 1100.0,
"_source": {
"id": "7ae780a2d3c4bbbeeddc27b5deac5b46",
"autoIncrement": 130722.0
},
"fields": {
"displayGroup": [
"5bd401233e9a2005981315e3447a03c8"
]
},
"sort": [
0,
1100.0,
0,
130722,
"7ae780a2d3c4bbbeeddc27b5deac5b46"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a9a39746dd0f6ad45ebd5e12bb6e1fb9",
"_score": 1100.0,
"_source": {
"id": "a9a39746dd0f6ad45ebd5e12bb6e1fb9",
"autoIncrement": 130720.0
},
"fields": {
"displayGroup": [
"a25042ae8aec90b9720583ac416d430e"
]
},
"sort": [
0,
1100.0,
0,
130720,
"a9a39746dd0f6ad45ebd5e12bb6e1fb9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7be6c87d198ef45455acf37e29347dc2",
"_score": 1100.0,
"_source": {
"id": "7be6c87d198ef45455acf37e29347dc2",
"autoIncrement": 130719.0
},
"fields": {
"displayGroup": [
"7b21d48a6baba86cf527241b9057ab3e"
]
},
"sort": [
0,
1100.0,
0,
130719,
"7be6c87d198ef45455acf37e29347dc2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bc287f8a43738f61ce3a951ecd8684ad",
"_score": 1100.0,
"_source": {
"id": "bc287f8a43738f61ce3a951ecd8684ad",
"autoIncrement": 130717.0
},
"fields": {
"displayGroup": [
"541f385ee7a31990e73ce85145e34c13"
]
},
"sort": [
0,
1100.0,
0,
130717,
"bc287f8a43738f61ce3a951ecd8684ad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ded1b3835ce387af67e2ad21ce4fd730",
"_score": 1100.0,
"_source": {
"id": "ded1b3835ce387af67e2ad21ce4fd730",
"autoIncrement": 78465.0
},
"fields": {
"displayGroup": [
"2e93ed61602fc6518bbceba4e48dbbdb"
]
},
"sort": [
0,
1100.0,
0,
78465,
"ded1b3835ce387af67e2ad21ce4fd730"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f022e19aa6d6b274092d728ddea8a652",
"_score": 1100.0,
"_source": {
"id": "f022e19aa6d6b274092d728ddea8a652",
"autoIncrement": 78464.0
},
"fields": {
"displayGroup": [
"b3b3950c51abf981516de2d94547bb09"
]
},
"sort": [
0,
1100.0,
0,
78464,
"f022e19aa6d6b274092d728ddea8a652"
]
}
]
},
"aggregations": {
"total-count": {
"value": 25
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.37 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":"13c1e288229411ca06702e1a1154b0cc"}},{"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"}},"range-traglast":{"stats":{"field":"attribute_traglast"}},"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": "13c1e288229411ca06702e1a1154b0cc"
}
},
{
"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"
}
},
"range-traglast": {
"stats": {
"field": "attribute_traglast"
}
},
"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": 25,
"min": 1159.0,
"max": 9502.0,
"avg": 5636.96,
"sum": 140924.0
},
"rating-exists": {
"doc_count": 25,
"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": "b3cce6592a58376c85428f5069ca7a39",
"manufacturer-count-filter.key": "b3cce6592a58376c85428f5069ca7a39"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "b3cce6592a58376c85428f5069ca7a39",
"manufacturer-count-filter.key": "b3cce6592a58376c85428f5069ca7a39"
},
"doc_count": 15
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 22,
"min": 800.0,
"max": 2040.0,
"avg": 1720.590909090909,
"sum": 37853.0
},
"width-stats": {
"doc_count": 22,
"width-stats": {
"count": 22,
"min": 800.0,
"max": 2040.0,
"avg": 1720.590909090909,
"sum": 37853.0
}
},
"height": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"height-stats": {
"doc_count": 0,
"height-stats": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
}
},
"tiefe": {
"count": 10,
"min": 755.0,
"max": 860.0,
"avg": 800.0,
"sum": 8000.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Hydraulische Stapler",
"multi-typModel.key": "Hydraulische Stapler"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Elektrohydr. Stapler",
"multi-typModel.key": "Elektrohydr. Stapler"
},
"doc_count": 19
},
{
"key": {
"multi-typModel.sorting": "Elektrohydraulische Stapler",
"multi-typModel.key": "Elektrohydraulische Stapler"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Hub-Neige-Ger\u00e4te",
"multi-typModel.key": "Hub-Neige-Ger\u00e4te"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Hydraulische Stapler",
"multi-typModel.key": "Hydraulische Stapler"
},
"doc_count": 3
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "schwarz-rot",
"multi-farbe.key": "schwarz-rot"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 2002 Blutorange",
"multi-farbe.key": "RAL 2002 Blutorange"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "schwarz-rot",
"multi-farbe.key": "schwarz-rot"
},
"doc_count": 3
}
]
},
"range-traglast": {
"count": 1,
"min": 2000.0,
"max": 2000.0,
"avg": 2000.0,
"sum": 2000.0
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "b3cce6592a58376c85428f5069ca7a39",
"doc_count": 15
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|