| 1 |
18.71 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":"07b459106e817025ff7c0577bed18344"}},{"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":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 106,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "0823c8451a86c95588250db1481954a3",
"_score": 1100.0,
"_source": {
"id": "0823c8451a86c95588250db1481954a3",
"autoIncrement": 44915.0
},
"fields": {
"displayGroup": [
"041bc99d8b2cd61ab1f9518e258afd83"
]
},
"sort": [
0,
1100.0,
0,
44915,
"0823c8451a86c95588250db1481954a3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b487483951714aac98202349d6637cc2",
"_score": 1100.0,
"_source": {
"id": "b487483951714aac98202349d6637cc2",
"autoIncrement": 44913.0
},
"fields": {
"displayGroup": [
"fa6676e75ed9cd61c9f41986ae763e83"
]
},
"sort": [
0,
1100.0,
0,
44913,
"b487483951714aac98202349d6637cc2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4fbf6207053e0f0685cd901736f1af11",
"_score": 1100.0,
"_source": {
"id": "4fbf6207053e0f0685cd901736f1af11",
"autoIncrement": 44912.0
},
"fields": {
"displayGroup": [
"b08544437c8248b11f223fa3fdfefea6"
]
},
"sort": [
0,
1100.0,
0,
44912,
"4fbf6207053e0f0685cd901736f1af11"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "42e81c8126b128c7f0fa4a1f76165938",
"_score": 1100.0,
"_source": {
"id": "42e81c8126b128c7f0fa4a1f76165938",
"autoIncrement": 44911.0
},
"fields": {
"displayGroup": [
"51ecaa84c02761b99f3c86e399a58f9d"
]
},
"sort": [
0,
1100.0,
0,
44911,
"42e81c8126b128c7f0fa4a1f76165938"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "06145569e1290fc02d3c033157d9fc41",
"_score": 1100.0,
"_source": {
"id": "06145569e1290fc02d3c033157d9fc41",
"autoIncrement": 44910.0
},
"fields": {
"displayGroup": [
"d67f83ab96c9a3036f9b2635f7a61636"
]
},
"sort": [
0,
1100.0,
0,
44910,
"06145569e1290fc02d3c033157d9fc41"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "28439b9afab30d0944138a23a1d4d4db",
"_score": 1100.0,
"_source": {
"id": "28439b9afab30d0944138a23a1d4d4db",
"autoIncrement": 44908.0
},
"fields": {
"displayGroup": [
"25cc41e91698967f95b59bc6c204288d"
]
},
"sort": [
0,
1100.0,
0,
44908,
"28439b9afab30d0944138a23a1d4d4db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f81b853a8b3ab92444d8a8bd552b47e5",
"_score": 1100.0,
"_source": {
"id": "f81b853a8b3ab92444d8a8bd552b47e5",
"autoIncrement": 44907.0
},
"fields": {
"displayGroup": [
"2659116232064b5ffb3d7dcdddaa3298"
]
},
"sort": [
0,
1100.0,
0,
44907,
"f81b853a8b3ab92444d8a8bd552b47e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aeb7d21eb66bc43db5b9f702404cfa43",
"_score": 1100.0,
"_source": {
"id": "aeb7d21eb66bc43db5b9f702404cfa43",
"autoIncrement": 44906.0
},
"fields": {
"displayGroup": [
"e64df365d4315a462d9acf9e624abd01"
]
},
"sort": [
0,
1100.0,
0,
44906,
"aeb7d21eb66bc43db5b9f702404cfa43"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "30e020c7d4ca8838bbbc120637c57a51",
"_score": 1100.0,
"_source": {
"id": "30e020c7d4ca8838bbbc120637c57a51",
"autoIncrement": 44905.0
},
"fields": {
"displayGroup": [
"54f4b10da3fc3e05294e2641140d7afc"
]
},
"sort": [
0,
1100.0,
0,
44905,
"30e020c7d4ca8838bbbc120637c57a51"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "176588bdf0a52b011aba2d0de40a8d11",
"_score": 1100.0,
"_source": {
"id": "176588bdf0a52b011aba2d0de40a8d11",
"autoIncrement": 44904.0
},
"fields": {
"displayGroup": [
"a17612dbd4a8d3c8e5d6cff7179ceda0"
]
},
"sort": [
0,
1100.0,
0,
44904,
"176588bdf0a52b011aba2d0de40a8d11"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d0749e18c6a816c82f1a9a35fccc4e13",
"_score": 1100.0,
"_source": {
"id": "d0749e18c6a816c82f1a9a35fccc4e13",
"autoIncrement": 44903.0
},
"fields": {
"displayGroup": [
"02329f27bcb5428749bd94859c8b0bff"
]
},
"sort": [
0,
1100.0,
0,
44903,
"d0749e18c6a816c82f1a9a35fccc4e13"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bf5fab1db4340c7a16265d384fe50755",
"_score": 1100.0,
"_source": {
"id": "bf5fab1db4340c7a16265d384fe50755",
"autoIncrement": 44902.0
},
"fields": {
"displayGroup": [
"bba9ba7c1e329c57548169faeafac086"
]
},
"sort": [
0,
1100.0,
0,
44902,
"bf5fab1db4340c7a16265d384fe50755"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "44ba2e97eec05f4587e058d6a4b4c384",
"_score": 1100.0,
"_source": {
"id": "44ba2e97eec05f4587e058d6a4b4c384",
"autoIncrement": 44901.0
},
"fields": {
"displayGroup": [
"a1d6f201fac6a3731e368276ddc1a7cc"
]
},
"sort": [
0,
1100.0,
0,
44901,
"44ba2e97eec05f4587e058d6a4b4c384"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "832ef2c888187861eb7695e64ff38a81",
"_score": 1100.0,
"_source": {
"id": "832ef2c888187861eb7695e64ff38a81",
"autoIncrement": 44900.0
},
"fields": {
"displayGroup": [
"1576141242c0e16041202eceed60a55f"
]
},
"sort": [
0,
1100.0,
0,
44900,
"832ef2c888187861eb7695e64ff38a81"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "495eb3c749708beddb22189effefc214",
"_score": 1100.0,
"_source": {
"id": "495eb3c749708beddb22189effefc214",
"autoIncrement": 44899.0
},
"fields": {
"displayGroup": [
"f758e77c50e6af11f1955f1b03a4ffbd"
]
},
"sort": [
0,
1100.0,
0,
44899,
"495eb3c749708beddb22189effefc214"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7892078b88d18a03e1889fe02e7f6cc",
"_score": 1100.0,
"_source": {
"id": "e7892078b88d18a03e1889fe02e7f6cc",
"autoIncrement": 44898.0
},
"fields": {
"displayGroup": [
"fa614987a298d77360c99212ce7b67db"
]
},
"sort": [
0,
1100.0,
0,
44898,
"e7892078b88d18a03e1889fe02e7f6cc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9c3177cc43cd16fa00451ce91445fea3",
"_score": 1100.0,
"_source": {
"id": "9c3177cc43cd16fa00451ce91445fea3",
"autoIncrement": 44897.0
},
"fields": {
"displayGroup": [
"45b680e6aa543ff8946b52ea1fdfbfb9"
]
},
"sort": [
0,
1100.0,
0,
44897,
"9c3177cc43cd16fa00451ce91445fea3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "520332cd9de07b7273a0c62985a8d431",
"_score": 1100.0,
"_source": {
"id": "520332cd9de07b7273a0c62985a8d431",
"autoIncrement": 44895.0
},
"fields": {
"displayGroup": [
"acc788cf74ec5a7b1aa288867633d507"
]
},
"sort": [
0,
1100.0,
0,
44895,
"520332cd9de07b7273a0c62985a8d431"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f8197976a46ba927d53b95fde47a62a0",
"_score": 1100.0,
"_source": {
"id": "f8197976a46ba927d53b95fde47a62a0",
"autoIncrement": 44894.0
},
"fields": {
"displayGroup": [
"c94c6a8ca4b00825fe226f2aefff8b09"
]
},
"sort": [
0,
1100.0,
0,
44894,
"f8197976a46ba927d53b95fde47a62a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a170de36ea533938b8c230b5a4401187",
"_score": 1100.0,
"_source": {
"id": "a170de36ea533938b8c230b5a4401187",
"autoIncrement": 44893.0
},
"fields": {
"displayGroup": [
"098a054ef89e23cfb14d8dc27cb60a21"
]
},
"sort": [
0,
1100.0,
0,
44893,
"a170de36ea533938b8c230b5a4401187"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3561098c2ce9839c580f01d9488483bf",
"_score": 1100.0,
"_source": {
"id": "3561098c2ce9839c580f01d9488483bf",
"autoIncrement": 44892.0
},
"fields": {
"displayGroup": [
"a8b9e90d53ac30b9f868b6a274ba8104"
]
},
"sort": [
0,
1100.0,
0,
44892,
"3561098c2ce9839c580f01d9488483bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "81f8eaf5efa3e75e21ef4c23e2565d6b",
"_score": 1100.0,
"_source": {
"id": "81f8eaf5efa3e75e21ef4c23e2565d6b",
"autoIncrement": 44884.0
},
"fields": {
"displayGroup": [
"e0456aa48de36e5d4d54609b8768478b"
]
},
"sort": [
0,
1100.0,
0,
44884,
"81f8eaf5efa3e75e21ef4c23e2565d6b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "65f2dfa4ee9330667ebcc71f410aabe5",
"_score": 1100.0,
"_source": {
"id": "65f2dfa4ee9330667ebcc71f410aabe5",
"autoIncrement": 44883.0
},
"fields": {
"displayGroup": [
"81481bdc88e33645cc5c761161be74e9"
]
},
"sort": [
0,
1100.0,
0,
44883,
"65f2dfa4ee9330667ebcc71f410aabe5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f7f7d4ea9d1a0c5770ab1df93c7dac9f",
"_score": 1100.0,
"_source": {
"id": "f7f7d4ea9d1a0c5770ab1df93c7dac9f",
"autoIncrement": 44879.0
},
"fields": {
"displayGroup": [
"b7d0f09820e00373757ced28b0a335ce"
]
},
"sort": [
0,
1100.0,
0,
44879,
"f7f7d4ea9d1a0c5770ab1df93c7dac9f"
]
}
]
},
"aggregations": {
"total-count": {
"value": 106
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.93 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":"07b459106e817025ff7c0577bed18344"}},{"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-materialBehaelter":{"composite":{"sources":[{"multi-materialBehaelter.sorting":{"terms":{"field":"attribute_materialBehaelter","order":"ASC"}}},{"multi-materialBehaelter.key":{"terms":{"field":"attribute_materialBehaelter"}}}],"size":"99999"}},"multi-behaelterfarbe":{"composite":{"sources":[{"multi-behaelterfarbe.sorting":{"terms":{"field":"attribute_behaelterfarbe","order":"ASC"}}},{"multi-behaelterfarbe.key":{"terms":{"field":"attribute_behaelterfarbe"}}}],"size":"99999"}},"range-behaeltervolumen":{"stats":{"field":"attribute_behaeltervolumen"}},"range-gewichtCa":{"stats":{"field":"attribute_gewichtCa"}},"bool-deckel":{"filter":{"term":{"attribute_deckel":"true"}},"aggregations":{"bool-deckel-count":{"value_count":{"field":"id"}}}},"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": "07b459106e817025ff7c0577bed18344"
}
},
{
"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-materialBehaelter": {
"composite": {
"sources": [
{
"multi-materialBehaelter.sorting": {
"terms": {
"field": "attribute_materialBehaelter",
"order": "ASC"
}
}
},
{
"multi-materialBehaelter.key": {
"terms": {
"field": "attribute_materialBehaelter"
}
}
}
],
"size": "99999"
}
},
"multi-behaelterfarbe": {
"composite": {
"sources": [
{
"multi-behaelterfarbe.sorting": {
"terms": {
"field": "attribute_behaelterfarbe",
"order": "ASC"
}
}
},
{
"multi-behaelterfarbe.key": {
"terms": {
"field": "attribute_behaelterfarbe"
}
}
}
],
"size": "99999"
}
},
"range-behaeltervolumen": {
"stats": {
"field": "attribute_behaeltervolumen"
}
},
"range-gewichtCa": {
"stats": {
"field": "attribute_gewichtCa"
}
},
"bool-deckel": {
"filter": {
"term": {
"attribute_deckel": "true"
}
},
"aggregations": {
"bool-deckel-count": {
"value_count": {
"field": "id"
}
}
}
},
"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": 106,
"min": 0.0,
"max": 849.0,
"avg": 323.97169811320754,
"sum": 34341.0
},
"rating-exists": {
"doc_count": 106,
"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": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "002101f8725e5c78d9f30d87f3fa4c87",
"manufacturer-count-filter.key": "002101f8725e5c78d9f30d87f3fa4c87"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"manufacturer-count-filter.key": "3bb7d1a75e4b1caaecfd4c5223b756f7"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"doc_count": 16
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
},
"width-stats": {
"doc_count": 92,
"width-stats": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
}
},
"height": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
},
"height-stats": {
"doc_count": 92,
"height-stats": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
}
},
"tiefe": {
"count": 79,
"min": 84.0,
"max": 1000.0,
"avg": 738.0886075949367,
"sum": 58309.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Gitterboxen",
"multi-typModel.key": "Gitterboxen"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Palettenboxen",
"multi-typModel.key": "Palettenboxen"
},
"doc_count": 66
},
{
"key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"doc_count": 37
}
]
},
"multi-materialBehaelter": {
"buckets": []
},
"multi-behaelterfarbe": {
"buckets": []
},
"range-behaeltervolumen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"range-gewichtCa": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"bool-deckel": {
"doc_count": 4,
"bool-deckel-count": {
"value": 4
}
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "002101f8725e5c78d9f30d87f3fa4c87",
"doc_count": 27
},
{
"key": "e1330782b3097373dd5b64609bbdc363",
"doc_count": 16
},
{
"key": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|