| 1 |
16.91 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"7f803b51456984d041e9e13b12c299e4"}},{"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": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 48,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "8d56d9834e31e90a8ba2c87bda76021d",
"_score": 1100.0,
"_source": {
"id": "8d56d9834e31e90a8ba2c87bda76021d",
"autoIncrement": 111923.0
},
"fields": {
"displayGroup": [
"8ec78b4b8d32c5439d3fe90f467ec111"
]
},
"sort": [
0,
1100.0,
0,
111923,
"8d56d9834e31e90a8ba2c87bda76021d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e32b6a2d69b685163ef2045f41e81ab",
"_score": 1100.0,
"_source": {
"id": "9e32b6a2d69b685163ef2045f41e81ab",
"autoIncrement": 111922.0
},
"fields": {
"displayGroup": [
"0ce99b6d6e0a1e4c5fbcdb306fcab4b8"
]
},
"sort": [
0,
1100.0,
0,
111922,
"9e32b6a2d69b685163ef2045f41e81ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "96df74d71a85f13f81edaa2b075c9cfc",
"_score": 1100.0,
"_source": {
"id": "96df74d71a85f13f81edaa2b075c9cfc",
"autoIncrement": 111921.0
},
"fields": {
"displayGroup": [
"93fe1d70936b35c78097a70d6495a7a5"
]
},
"sort": [
0,
1100.0,
0,
111921,
"96df74d71a85f13f81edaa2b075c9cfc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7ce1e1626a6c35de42676bd0ade56747",
"_score": 1100.0,
"_source": {
"id": "7ce1e1626a6c35de42676bd0ade56747",
"autoIncrement": 111920.0
},
"fields": {
"displayGroup": [
"01fb7a241b7ef13c1a42f5315e19a155"
]
},
"sort": [
0,
1100.0,
0,
111920,
"7ce1e1626a6c35de42676bd0ade56747"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d95f2ceddd54ae715ad278acec6fcbc1",
"_score": 1100.0,
"_source": {
"id": "d95f2ceddd54ae715ad278acec6fcbc1",
"autoIncrement": 111919.0
},
"fields": {
"displayGroup": [
"481e49a5aece3df4c074cedcf558dc8b"
]
},
"sort": [
0,
1100.0,
0,
111919,
"d95f2ceddd54ae715ad278acec6fcbc1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c688c03e8562e55029dc718693bc9f95",
"_score": 1100.0,
"_source": {
"id": "c688c03e8562e55029dc718693bc9f95",
"autoIncrement": 111918.0
},
"fields": {
"displayGroup": [
"7c4a66a03f7935acdbfeadf81d76fbff"
]
},
"sort": [
0,
1100.0,
0,
111918,
"c688c03e8562e55029dc718693bc9f95"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d9dae467b0f23531bdb840c67c40e04c",
"_score": 1100.0,
"_source": {
"id": "d9dae467b0f23531bdb840c67c40e04c",
"autoIncrement": 111917.0
},
"fields": {
"displayGroup": [
"faeaba7f85782209adb2080adbbef552"
]
},
"sort": [
0,
1100.0,
0,
111917,
"d9dae467b0f23531bdb840c67c40e04c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ea0fbb7a80b407b872c5bc7f2b2b809",
"_score": 1100.0,
"_source": {
"id": "5ea0fbb7a80b407b872c5bc7f2b2b809",
"autoIncrement": 111916.0
},
"fields": {
"displayGroup": [
"3f0b3bc9eb03b6849b2c644918536b9a"
]
},
"sort": [
0,
1100.0,
0,
111916,
"5ea0fbb7a80b407b872c5bc7f2b2b809"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "30a8a6d8c4462375333a37984a02e05c",
"_score": 1100.0,
"_source": {
"id": "30a8a6d8c4462375333a37984a02e05c",
"autoIncrement": 111915.0
},
"fields": {
"displayGroup": [
"aedefddab03ae4cbbcd5a8a8533ec1f3"
]
},
"sort": [
0,
1100.0,
0,
111915,
"30a8a6d8c4462375333a37984a02e05c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a8638056e0f95100206ca09756e070cf",
"_score": 1100.0,
"_source": {
"id": "a8638056e0f95100206ca09756e070cf",
"autoIncrement": 111914.0
},
"fields": {
"displayGroup": [
"d2fdd11eda28986e8d7c5e855cea32df"
]
},
"sort": [
0,
1100.0,
0,
111914,
"a8638056e0f95100206ca09756e070cf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d304272b5eb1768f422a8b65a34e244",
"_score": 1100.0,
"_source": {
"id": "8d304272b5eb1768f422a8b65a34e244",
"autoIncrement": 111913.0
},
"fields": {
"displayGroup": [
"5ab67226ac0ba6e48b55294cf52448d4"
]
},
"sort": [
0,
1100.0,
0,
111913,
"8d304272b5eb1768f422a8b65a34e244"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e9ccd126cfc7e557578c27e8d82d4af",
"_score": 1100.0,
"_source": {
"id": "6e9ccd126cfc7e557578c27e8d82d4af",
"autoIncrement": 111912.0
},
"fields": {
"displayGroup": [
"2e13a5a7b015bdb2a5538e86073e0ce6"
]
},
"sort": [
0,
1100.0,
0,
111912,
"6e9ccd126cfc7e557578c27e8d82d4af"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "441ac0a58ef0a97b5f2ac668e96a6402",
"_score": 1100.0,
"_source": {
"id": "441ac0a58ef0a97b5f2ac668e96a6402",
"autoIncrement": 111911.0
},
"fields": {
"displayGroup": [
"023ba67e5eee6f181fd40fb41076a229"
]
},
"sort": [
0,
1100.0,
0,
111911,
"441ac0a58ef0a97b5f2ac668e96a6402"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fd2ac76e8703bfcdbf79b29d9b7decdd",
"_score": 1100.0,
"_source": {
"id": "fd2ac76e8703bfcdbf79b29d9b7decdd",
"autoIncrement": 111910.0
},
"fields": {
"displayGroup": [
"6b88dbeab55e2a47986007a7ff79bb1c"
]
},
"sort": [
0,
1100.0,
0,
111910,
"fd2ac76e8703bfcdbf79b29d9b7decdd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a47d549268a185694c7c2470f5126957",
"_score": 1100.0,
"_source": {
"id": "a47d549268a185694c7c2470f5126957",
"autoIncrement": 111909.0
},
"fields": {
"displayGroup": [
"8c177e3c76336b85b6955847f0a2ce86"
]
},
"sort": [
0,
1100.0,
0,
111909,
"a47d549268a185694c7c2470f5126957"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b8b4131a515c176f1536f3ad794b8aaa",
"_score": 1100.0,
"_source": {
"id": "b8b4131a515c176f1536f3ad794b8aaa",
"autoIncrement": 111908.0
},
"fields": {
"displayGroup": [
"b465f8d730f224a77acb612202e0b3b1"
]
},
"sort": [
0,
1100.0,
0,
111908,
"b8b4131a515c176f1536f3ad794b8aaa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "397b1b58f18b630852a997b7d2c057f5",
"_score": 1100.0,
"_source": {
"id": "397b1b58f18b630852a997b7d2c057f5",
"autoIncrement": 111907.0
},
"fields": {
"displayGroup": [
"37d8ea7b574c81392fb55351319057cb"
]
},
"sort": [
0,
1100.0,
0,
111907,
"397b1b58f18b630852a997b7d2c057f5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2eca82d5fcd6bf438f042b6e1a1d667b",
"_score": 1100.0,
"_source": {
"id": "2eca82d5fcd6bf438f042b6e1a1d667b",
"autoIncrement": 111906.0
},
"fields": {
"displayGroup": [
"461bd2f6b7be0d66d14246716659e525"
]
},
"sort": [
0,
1100.0,
0,
111906,
"2eca82d5fcd6bf438f042b6e1a1d667b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bef1c3e7a38f2737316ca050637e499e",
"_score": 1100.0,
"_source": {
"id": "bef1c3e7a38f2737316ca050637e499e",
"autoIncrement": 111905.0
},
"fields": {
"displayGroup": [
"90f8fb65829cb58208b27d6bfb6f9994"
]
},
"sort": [
0,
1100.0,
0,
111905,
"bef1c3e7a38f2737316ca050637e499e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e08f851f0206d44f0a4a85b3ee697c97",
"_score": 1100.0,
"_source": {
"id": "e08f851f0206d44f0a4a85b3ee697c97",
"autoIncrement": 111904.0
},
"fields": {
"displayGroup": [
"f10af5e4afd56e4045c3eb16d4b249d7"
]
},
"sort": [
0,
1100.0,
0,
111904,
"e08f851f0206d44f0a4a85b3ee697c97"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a8283cbb1a25b08834857537a73ec7d2",
"_score": 1100.0,
"_source": {
"id": "a8283cbb1a25b08834857537a73ec7d2",
"autoIncrement": 111903.0
},
"fields": {
"displayGroup": [
"05067664f60b4d6096ca02fc021e194c"
]
},
"sort": [
0,
1100.0,
0,
111903,
"a8283cbb1a25b08834857537a73ec7d2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "46d9207ada51a43f48754f5dbe8cf685",
"_score": 1100.0,
"_source": {
"id": "46d9207ada51a43f48754f5dbe8cf685",
"autoIncrement": 111902.0
},
"fields": {
"displayGroup": [
"b49e8c83305fadba6293cb966f711231"
]
},
"sort": [
0,
1100.0,
0,
111902,
"46d9207ada51a43f48754f5dbe8cf685"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cc60ddb32b8d0e9472a02d4da56646c7",
"_score": 1100.0,
"_source": {
"id": "cc60ddb32b8d0e9472a02d4da56646c7",
"autoIncrement": 111901.0
},
"fields": {
"displayGroup": [
"d68d58bbe1528b7fe7b2fa4a9084a69c"
]
},
"sort": [
0,
1100.0,
0,
111901,
"cc60ddb32b8d0e9472a02d4da56646c7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "063a6547232659511be46a01b851dad0",
"_score": 1100.0,
"_source": {
"id": "063a6547232659511be46a01b851dad0",
"autoIncrement": 111900.0
},
"fields": {
"displayGroup": [
"f7bd9342afd17eb3c93e52a39ec0f469"
]
},
"sort": [
0,
1100.0,
0,
111900,
"063a6547232659511be46a01b851dad0"
]
}
]
},
"aggregations": {
"total-count": {
"value": 48
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.99 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":"7f803b51456984d041e9e13b12c299e4"}},{"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"}}}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"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": "7f803b51456984d041e9e13b12c299e4"
}
},
{
"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"
}
}
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"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": 48,
"min": 693.0,
"max": 43999.0,
"avg": 7051.5625,
"sum": 338475.0
},
"rating-exists": {
"doc_count": 48,
"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": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 36
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 890.0,
"multi-width.key": 890.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1090.0,
"multi-width.key": 1090.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"doc_count": 12
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 18
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 18
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 860.0,
"multi-tiefe.key": 860.0
},
"doc_count": 12
},
{
"key": {
"multi-tiefe.sorting": 1060.0,
"multi-tiefe.key": 1060.0
},
"doc_count": 12
},
{
"key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"doc_count": 12
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 36
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 18
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 30
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "2500 kg",
"multi-fachlast.key": "2500 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "1000 kg",
"multi-fachlast.key": "1000 kg"
},
"doc_count": 36
},
{
"key": {
"multi-fachlast.sorting": "1500 kg",
"multi-fachlast.key": "1500 kg"
},
"doc_count": 4
},
{
"key": {
"multi-fachlast.sorting": "2500 kg",
"multi-fachlast.key": "2500 kg"
},
"doc_count": 8
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 36
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|