| 1 |
17.76 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":336,"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": "cd79b34d9a3e6b7688d879a94e3fca13",
"_score": 1100.0,
"_source": {
"id": "cd79b34d9a3e6b7688d879a94e3fca13",
"autoIncrement": 114613.0
},
"fields": {
"displayGroup": [
"aee2c5bfe14cdb4bfda382f2dc0f6a3d"
]
},
"sort": [
0,
1100.0,
0,
114613,
"cd79b34d9a3e6b7688d879a94e3fca13"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b9ac26feba41915e8cf545fb207c5216",
"_score": 1100.0,
"_source": {
"id": "b9ac26feba41915e8cf545fb207c5216",
"autoIncrement": 114612.0
},
"fields": {
"displayGroup": [
"64f210ca163117af12a620b657d0bacb"
]
},
"sort": [
0,
1100.0,
0,
114612,
"b9ac26feba41915e8cf545fb207c5216"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8b19c1bf9b8708d5330a72ae63f9c82c",
"_score": 1100.0,
"_source": {
"id": "8b19c1bf9b8708d5330a72ae63f9c82c",
"autoIncrement": 114611.0
},
"fields": {
"displayGroup": [
"241bb8c0e0761576cd89572258f791c5"
]
},
"sort": [
0,
1100.0,
0,
114611,
"8b19c1bf9b8708d5330a72ae63f9c82c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "db75f0ab8838d5b6f5e4451fc851f8bd",
"_score": 1100.0,
"_source": {
"id": "db75f0ab8838d5b6f5e4451fc851f8bd",
"autoIncrement": 114610.0
},
"fields": {
"displayGroup": [
"c2a162f759f6eaf9ca3e7b05c1d445d8"
]
},
"sort": [
0,
1100.0,
0,
114610,
"db75f0ab8838d5b6f5e4451fc851f8bd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ec6f554eb1217ec2bb0ae3498fadebe3",
"_score": 1100.0,
"_source": {
"id": "ec6f554eb1217ec2bb0ae3498fadebe3",
"autoIncrement": 114609.0
},
"fields": {
"displayGroup": [
"6d4c1c31564408bf99d25e1a70c5f598"
]
},
"sort": [
0,
1100.0,
0,
114609,
"ec6f554eb1217ec2bb0ae3498fadebe3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eae603954a3c43677c5cf626d23a00af",
"_score": 1100.0,
"_source": {
"id": "eae603954a3c43677c5cf626d23a00af",
"autoIncrement": 114608.0
},
"fields": {
"displayGroup": [
"e4df07300df6544670292d8911bce700"
]
},
"sort": [
0,
1100.0,
0,
114608,
"eae603954a3c43677c5cf626d23a00af"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "66eb10542c5562d5db954b1656274f92",
"_score": 1100.0,
"_source": {
"id": "66eb10542c5562d5db954b1656274f92",
"autoIncrement": 114607.0
},
"fields": {
"displayGroup": [
"64c4f42af21f905b1599862d4c236abd"
]
},
"sort": [
0,
1100.0,
0,
114607,
"66eb10542c5562d5db954b1656274f92"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "53d455e02e1a0bfedbb7721b71d12138",
"_score": 1100.0,
"_source": {
"id": "53d455e02e1a0bfedbb7721b71d12138",
"autoIncrement": 114606.0
},
"fields": {
"displayGroup": [
"1b9f7b75ac2a99795026950744c72116"
]
},
"sort": [
0,
1100.0,
0,
114606,
"53d455e02e1a0bfedbb7721b71d12138"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "059cc4f7e93be98fa0481a93e93da854",
"_score": 1100.0,
"_source": {
"id": "059cc4f7e93be98fa0481a93e93da854",
"autoIncrement": 114605.0
},
"fields": {
"displayGroup": [
"6f0d3d0528712589012244edd9ef7ec8"
]
},
"sort": [
0,
1100.0,
0,
114605,
"059cc4f7e93be98fa0481a93e93da854"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4121a0c5c5f16bd590eedbed334ca727",
"_score": 1100.0,
"_source": {
"id": "4121a0c5c5f16bd590eedbed334ca727",
"autoIncrement": 114604.0
},
"fields": {
"displayGroup": [
"5f24b82f994d3c4f8ed0cd8159f0c2ec"
]
},
"sort": [
0,
1100.0,
0,
114604,
"4121a0c5c5f16bd590eedbed334ca727"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4b296c19d78ca47b9b97e568d9826e5a",
"_score": 1100.0,
"_source": {
"id": "4b296c19d78ca47b9b97e568d9826e5a",
"autoIncrement": 114603.0
},
"fields": {
"displayGroup": [
"61db8b1be60581d73eee19fcc2e0fade"
]
},
"sort": [
0,
1100.0,
0,
114603,
"4b296c19d78ca47b9b97e568d9826e5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e791f6d24a54a25181a9a63b04b9315f",
"_score": 1100.0,
"_source": {
"id": "e791f6d24a54a25181a9a63b04b9315f",
"autoIncrement": 114602.0
},
"fields": {
"displayGroup": [
"13199301b5105aec1b06da99583858b0"
]
},
"sort": [
0,
1100.0,
0,
114602,
"e791f6d24a54a25181a9a63b04b9315f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1884af5f9ebc1e9d4eceb1bd4a138ffb",
"_score": 1100.0,
"_source": {
"id": "1884af5f9ebc1e9d4eceb1bd4a138ffb",
"autoIncrement": 114601.0
},
"fields": {
"displayGroup": [
"a76cf2b956d0f9c0a3f61f9a9cf29781"
]
},
"sort": [
0,
1100.0,
0,
114601,
"1884af5f9ebc1e9d4eceb1bd4a138ffb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "624700bfe49b2f4f60c01900a5e915ba",
"_score": 1100.0,
"_source": {
"id": "624700bfe49b2f4f60c01900a5e915ba",
"autoIncrement": 114600.0
},
"fields": {
"displayGroup": [
"cd51e4870576e8f9a4b4c8235f86bd8b"
]
},
"sort": [
0,
1100.0,
0,
114600,
"624700bfe49b2f4f60c01900a5e915ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bc6df444d4f9c2230d639720a253290b",
"_score": 1100.0,
"_source": {
"id": "bc6df444d4f9c2230d639720a253290b",
"autoIncrement": 114599.0
},
"fields": {
"displayGroup": [
"4c454faceac7cf12dd84278d9ef374a9"
]
},
"sort": [
0,
1100.0,
0,
114599,
"bc6df444d4f9c2230d639720a253290b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9fcb47311a2d3676e71fd8eed59abb6e",
"_score": 1100.0,
"_source": {
"id": "9fcb47311a2d3676e71fd8eed59abb6e",
"autoIncrement": 114598.0
},
"fields": {
"displayGroup": [
"66d3e9fb36097265194c35446424222a"
]
},
"sort": [
0,
1100.0,
0,
114598,
"9fcb47311a2d3676e71fd8eed59abb6e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9f17bcc8fa602dd2bd9ebbf837045e9c",
"_score": 1100.0,
"_source": {
"id": "9f17bcc8fa602dd2bd9ebbf837045e9c",
"autoIncrement": 114597.0
},
"fields": {
"displayGroup": [
"440206d529d88d4d0b8d7d91c33dcbb9"
]
},
"sort": [
0,
1100.0,
0,
114597,
"9f17bcc8fa602dd2bd9ebbf837045e9c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9180fdd181611b73f2a9342ffa8a81a6",
"_score": 1100.0,
"_source": {
"id": "9180fdd181611b73f2a9342ffa8a81a6",
"autoIncrement": 114596.0
},
"fields": {
"displayGroup": [
"aeb7a894f27e2d65a349edfcf136e3c4"
]
},
"sort": [
0,
1100.0,
0,
114596,
"9180fdd181611b73f2a9342ffa8a81a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0653b2a4265474fd52d45cf49f8af4bb",
"_score": 1100.0,
"_source": {
"id": "0653b2a4265474fd52d45cf49f8af4bb",
"autoIncrement": 114595.0
},
"fields": {
"displayGroup": [
"c9b4849f6c717bb4eb8e0f07e526a182"
]
},
"sort": [
0,
1100.0,
0,
114595,
"0653b2a4265474fd52d45cf49f8af4bb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5044c39f4f0582f59152a3ba7efe7434",
"_score": 1100.0,
"_source": {
"id": "5044c39f4f0582f59152a3ba7efe7434",
"autoIncrement": 114594.0
},
"fields": {
"displayGroup": [
"e217e58fc5adfa18a1828fe0dd95a9c3"
]
},
"sort": [
0,
1100.0,
0,
114594,
"5044c39f4f0582f59152a3ba7efe7434"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dab208b272cbfac4753a8fabd1e6ec8f",
"_score": 1100.0,
"_source": {
"id": "dab208b272cbfac4753a8fabd1e6ec8f",
"autoIncrement": 114593.0
},
"fields": {
"displayGroup": [
"a4870479f6ae125fc54e91d685c7047c"
]
},
"sort": [
0,
1100.0,
0,
114593,
"dab208b272cbfac4753a8fabd1e6ec8f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "97271468defb5aee00c6d6218693f58e",
"_score": 1100.0,
"_source": {
"id": "97271468defb5aee00c6d6218693f58e",
"autoIncrement": 114592.0
},
"fields": {
"displayGroup": [
"78a59868b9a5f1da89dff42aeded0933"
]
},
"sort": [
0,
1100.0,
0,
114592,
"97271468defb5aee00c6d6218693f58e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3b25f72a0f996f2f2b8f9dd3509407db",
"_score": 1100.0,
"_source": {
"id": "3b25f72a0f996f2f2b8f9dd3509407db",
"autoIncrement": 114591.0
},
"fields": {
"displayGroup": [
"a717389551ffa5623e2f637c34c90a98"
]
},
"sort": [
0,
1100.0,
0,
114591,
"3b25f72a0f996f2f2b8f9dd3509407db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dbf26645f45511c75976421132c28a15",
"_score": 1100.0,
"_source": {
"id": "dbf26645f45511c75976421132c28a15",
"autoIncrement": 114590.0
},
"fields": {
"displayGroup": [
"58ed0096d39cd945ea46dc3efed9aaf4"
]
},
"sort": [
0,
1100.0,
0,
114590,
"dbf26645f45511c75976421132c28a15"
]
}
]
},
"aggregations": {
"total-count": {
"value": 376
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.95 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
|