| 1 |
17.93 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":"62dc833447e7e08270ead97ad4ab5417"}},{"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":72,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 164,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "559d7544de40b1e853148f559d665e04",
"_score": 1100.0,
"_source": {
"id": "559d7544de40b1e853148f559d665e04",
"autoIncrement": 39804.0
},
"fields": {
"displayGroup": [
"dcd5a7cf22dbf6cfc029ac3b82b4ff20"
]
},
"sort": [
17,
1100.0,
0,
39804,
"559d7544de40b1e853148f559d665e04"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a5e3318ba5e01cb867d6e3c0529dba75",
"_score": 1100.0,
"_source": {
"id": "a5e3318ba5e01cb867d6e3c0529dba75",
"autoIncrement": 39803.0
},
"fields": {
"displayGroup": [
"bca55ab0330b59b4dcdc1893383f345d"
]
},
"sort": [
16,
1100.0,
0,
39803,
"a5e3318ba5e01cb867d6e3c0529dba75"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "459d19970f3a378232aeb68ea4854bd8",
"_score": 1100.0,
"_source": {
"id": "459d19970f3a378232aeb68ea4854bd8",
"autoIncrement": 39802.0
},
"fields": {
"displayGroup": [
"92a6763e980e9b8f256618b8fa9751c6"
]
},
"sort": [
15,
1100.0,
0,
39802,
"459d19970f3a378232aeb68ea4854bd8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6f1904cf2400add514fb9287307f236e",
"_score": 1100.0,
"_source": {
"id": "6f1904cf2400add514fb9287307f236e",
"autoIncrement": 127349.0
},
"fields": {
"displayGroup": [
"07f7cf53cf02d65b24dcfd93f19593b6"
]
},
"sort": [
0,
1100.0,
0,
127349,
"6f1904cf2400add514fb9287307f236e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bcddac6c80bbe2675763f0bbb971feaa",
"_score": 1100.0,
"_source": {
"id": "bcddac6c80bbe2675763f0bbb971feaa",
"autoIncrement": 123869.0
},
"fields": {
"displayGroup": [
"4f75e2cffd8fc2af0a24ef1f0b43ab33"
]
},
"sort": [
0,
1100.0,
0,
123869,
"bcddac6c80bbe2675763f0bbb971feaa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "82f9bf5638625ec0a33960153ea78d15",
"_score": 1100.0,
"_source": {
"id": "82f9bf5638625ec0a33960153ea78d15",
"autoIncrement": 118876.0
},
"fields": {
"displayGroup": [
"e2894f4f3e22d8ed85ce9dac6528d916"
]
},
"sort": [
0,
1100.0,
0,
118876,
"82f9bf5638625ec0a33960153ea78d15"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "67cba550d6339b6777901eaef2658b07",
"_score": 1100.0,
"_source": {
"id": "67cba550d6339b6777901eaef2658b07",
"autoIncrement": 105910.0
},
"fields": {
"displayGroup": [
"e997efb20bf867928c30f1a688881ae5"
]
},
"sort": [
0,
1100.0,
0,
105910,
"67cba550d6339b6777901eaef2658b07"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7c589f1ac0a5555897274835c467edc",
"_score": 1100.0,
"_source": {
"id": "e7c589f1ac0a5555897274835c467edc",
"autoIncrement": 105909.0
},
"fields": {
"displayGroup": [
"d9b1385166d5eebc1e2cea2dc7ff3519"
]
},
"sort": [
0,
1100.0,
0,
105909,
"e7c589f1ac0a5555897274835c467edc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32a7cd3d9e2d481889e09ac9a2985aae",
"_score": 1100.0,
"_source": {
"id": "32a7cd3d9e2d481889e09ac9a2985aae",
"autoIncrement": 105908.0
},
"fields": {
"displayGroup": [
"1df0908c6d3d2c0a753a01b21d843c5c"
]
},
"sort": [
0,
1100.0,
0,
105908,
"32a7cd3d9e2d481889e09ac9a2985aae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "656e12fb6c6314c47946e07a6b796f21",
"_score": 1100.0,
"_source": {
"id": "656e12fb6c6314c47946e07a6b796f21",
"autoIncrement": 105907.0
},
"fields": {
"displayGroup": [
"fc5ff9bd103c19a773db872389a421e9"
]
},
"sort": [
0,
1100.0,
0,
105907,
"656e12fb6c6314c47946e07a6b796f21"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2b7e18887ed4b0221bb4bac850654b15",
"_score": 1100.0,
"_source": {
"id": "2b7e18887ed4b0221bb4bac850654b15",
"autoIncrement": 100683.0
},
"fields": {
"displayGroup": [
"6f2ef135529a2b7477389e2dd921ec97"
]
},
"sort": [
0,
1100.0,
0,
100683,
"2b7e18887ed4b0221bb4bac850654b15"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d11e8935137d3b27dfcd4eaac967c243",
"_score": 1100.0,
"_source": {
"id": "d11e8935137d3b27dfcd4eaac967c243",
"autoIncrement": 100682.0
},
"fields": {
"displayGroup": [
"21b5468c000da152af1e23ffd5f062f5"
]
},
"sort": [
0,
1100.0,
0,
100682,
"d11e8935137d3b27dfcd4eaac967c243"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d8d25086cfa48220554dc9bce62eee87",
"_score": 1100.0,
"_source": {
"id": "d8d25086cfa48220554dc9bce62eee87",
"autoIncrement": 43022.0
},
"fields": {
"displayGroup": [
"dbd2d2f9bdddeaaf97f875e21fa7dcd5"
]
},
"sort": [
0,
1100.0,
0,
43022,
"d8d25086cfa48220554dc9bce62eee87"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "18dc4c4efde20656abb769d7b9a07560",
"_score": 1100.0,
"_source": {
"id": "18dc4c4efde20656abb769d7b9a07560",
"autoIncrement": 42462.0
},
"fields": {
"displayGroup": [
"2596bd845c244ba9616e92f60d28f47d"
]
},
"sort": [
0,
1100.0,
0,
42462,
"18dc4c4efde20656abb769d7b9a07560"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8153fa3a6c830e1bdc2c024a9e368400",
"_score": 1100.0,
"_source": {
"id": "8153fa3a6c830e1bdc2c024a9e368400",
"autoIncrement": 42461.0
},
"fields": {
"displayGroup": [
"11322c979f802ae998bc4b5ec75e7f8e"
]
},
"sort": [
0,
1100.0,
0,
42461,
"8153fa3a6c830e1bdc2c024a9e368400"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0185b83ccd169d4e7ac139f280de5f3e",
"_score": 1100.0,
"_source": {
"id": "0185b83ccd169d4e7ac139f280de5f3e",
"autoIncrement": 42460.0
},
"fields": {
"displayGroup": [
"96a8a63c78cb853d74ae519f01e74ffa"
]
},
"sort": [
0,
1100.0,
0,
42460,
"0185b83ccd169d4e7ac139f280de5f3e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01c8a2cb958cc1b1368c01423dbd85ec",
"_score": 1100.0,
"_source": {
"id": "01c8a2cb958cc1b1368c01423dbd85ec",
"autoIncrement": 42459.0
},
"fields": {
"displayGroup": [
"0993113c7a8da8146b05334660beb243"
]
},
"sort": [
0,
1100.0,
0,
42459,
"01c8a2cb958cc1b1368c01423dbd85ec"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7a56d187687ecf08065e1c7ba66d4213",
"_score": 1100.0,
"_source": {
"id": "7a56d187687ecf08065e1c7ba66d4213",
"autoIncrement": 42458.0
},
"fields": {
"displayGroup": [
"91f0f780e04493b47a685f8a2904c8d0"
]
},
"sort": [
0,
1100.0,
0,
42458,
"7a56d187687ecf08065e1c7ba66d4213"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c2c08b2056b2b4b03fd6c21bf51837a8",
"_score": 1100.0,
"_source": {
"id": "c2c08b2056b2b4b03fd6c21bf51837a8",
"autoIncrement": 39716.0
},
"fields": {
"displayGroup": [
"7da93007cd202cfb0ce0f487a08a7467"
]
},
"sort": [
0,
1100.0,
0,
39716,
"c2c08b2056b2b4b03fd6c21bf51837a8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d655a3ebc2ebaa9a8a4304e31a6260f7",
"_score": 1100.0,
"_source": {
"id": "d655a3ebc2ebaa9a8a4304e31a6260f7",
"autoIncrement": 39714.0
},
"fields": {
"displayGroup": [
"2f114a4e6979e64c3943391a0d6c89ee"
]
},
"sort": [
0,
1100.0,
0,
39714,
"d655a3ebc2ebaa9a8a4304e31a6260f7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "06eda60962bd299dc184f221bc20afee",
"_score": 1100.0,
"_source": {
"id": "06eda60962bd299dc184f221bc20afee",
"autoIncrement": 39713.0
},
"fields": {
"displayGroup": [
"2dfaac27eb67714337cc9ae3f704c5da"
]
},
"sort": [
0,
1100.0,
0,
39713,
"06eda60962bd299dc184f221bc20afee"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3effed7d3d5dbf520582682cdfcfce9",
"_score": 1100.0,
"_source": {
"id": "f3effed7d3d5dbf520582682cdfcfce9",
"autoIncrement": 39711.0
},
"fields": {
"displayGroup": [
"fa8dd7c0d3274a2da96c48dd614c585a"
]
},
"sort": [
0,
1100.0,
0,
39711,
"f3effed7d3d5dbf520582682cdfcfce9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "57c541a8965fdbf24c7954113069f942",
"_score": 1100.0,
"_source": {
"id": "57c541a8965fdbf24c7954113069f942",
"autoIncrement": 39710.0
},
"fields": {
"displayGroup": [
"184c6b01d038279f79ff2ad6e0831865"
]
},
"sort": [
0,
1100.0,
0,
39710,
"57c541a8965fdbf24c7954113069f942"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c1eb5eba7f0833aaeafb24fb3467e477",
"_score": 1100.0,
"_source": {
"id": "c1eb5eba7f0833aaeafb24fb3467e477",
"autoIncrement": 39709.0
},
"fields": {
"displayGroup": [
"57e39a35d55908ac45da7c4a7d57981c"
]
},
"sort": [
0,
1100.0,
0,
39709,
"c1eb5eba7f0833aaeafb24fb3467e477"
]
}
]
},
"aggregations": {
"total-count": {
"value": 164
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.33 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":"62dc833447e7e08270ead97ad4ab5417"}},{"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"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"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": "62dc833447e7e08270ead97ad4ab5417"
}
},
{
"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"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"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": 164,
"min": 185.0,
"max": 2971.0,
"avg": 815.614756097561,
"sum": 133760.82
},
"rating-exists": {
"doc_count": 164,
"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": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 70
},
{
"key": {
"manufacturer-count-filter.sorting": "6face5c8353d05da0eeacdd4ef058334",
"manufacturer-count-filter.key": "6face5c8353d05da0eeacdd4ef058334"
},
"doc_count": 90
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 4
}
]
},
"bool-reduced": {
"doc_count": 5,
"bool-reduced": {
"value": 5
}
},
"width": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
},
"width-stats": {
"doc_count": 164,
"width-stats": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
}
},
"height": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
},
"height-stats": {
"doc_count": 163,
"height-stats": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
}
},
"tiefe": {
"count": 164,
"min": 380.0,
"max": 960.0,
"avg": 564.170731707317,
"sum": 92524.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "H\u00e4ngeregistraturschr\u00e4nke",
"multi-typModel.key": "H\u00e4ngeregistraturschr\u00e4nke"
},
"doc_count": 90
},
{
"key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"doc_count": 74
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 150
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 10
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "6face5c8353d05da0eeacdd4ef058334",
"doc_count": 90
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 70
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|