| 1 |
20.52 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":"c7e554079c9470408efcf23bf8efb40e"}},{"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": 8,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 132,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "1a21ce2250ec8fb5ed8d9b952fae77fe",
"_score": 1100.0,
"_source": {
"id": "1a21ce2250ec8fb5ed8d9b952fae77fe",
"autoIncrement": 12499.0
},
"fields": {
"displayGroup": [
"ed2a0e1d4d2da59ee254677217e6c714"
]
},
"sort": [
0,
1100.0,
0,
12499,
"1a21ce2250ec8fb5ed8d9b952fae77fe"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "13123dd71c71c42a4a75b59507170a08",
"_score": 1100.0,
"_source": {
"id": "13123dd71c71c42a4a75b59507170a08",
"autoIncrement": 12498.0
},
"fields": {
"displayGroup": [
"b29e7490b4ffa7f2cd48161765659afb"
]
},
"sort": [
0,
1100.0,
0,
12498,
"13123dd71c71c42a4a75b59507170a08"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "771b7ffc6cad63c925fc9cf02303d7ea",
"_score": 1100.0,
"_source": {
"id": "771b7ffc6cad63c925fc9cf02303d7ea",
"autoIncrement": 12497.0
},
"fields": {
"displayGroup": [
"1196eb10e1d18b31e1b38acd96f69656"
]
},
"sort": [
0,
1100.0,
0,
12497,
"771b7ffc6cad63c925fc9cf02303d7ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d60bbdf94440a1c44aaeff0d49d48a57",
"_score": 1100.0,
"_source": {
"id": "d60bbdf94440a1c44aaeff0d49d48a57",
"autoIncrement": 12496.0
},
"fields": {
"displayGroup": [
"6876a4eff80fd449eea4dd69a0a02530"
]
},
"sort": [
0,
1100.0,
0,
12496,
"d60bbdf94440a1c44aaeff0d49d48a57"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5174d49bf104fb73879d9bdda25b8ada",
"_score": 1100.0,
"_source": {
"id": "5174d49bf104fb73879d9bdda25b8ada",
"autoIncrement": 12495.0
},
"fields": {
"displayGroup": [
"14c8a0b7204a7efa41eb4a58b5d6b59c"
]
},
"sort": [
0,
1100.0,
0,
12495,
"5174d49bf104fb73879d9bdda25b8ada"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b24281fec74944dac94c01c6d06a3ab1",
"_score": 1100.0,
"_source": {
"id": "b24281fec74944dac94c01c6d06a3ab1",
"autoIncrement": 12494.0
},
"fields": {
"displayGroup": [
"856663819d43d4506b447a4e30a1e687"
]
},
"sort": [
0,
1100.0,
0,
12494,
"b24281fec74944dac94c01c6d06a3ab1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1c2358b172d0079f4ee512ee9de147c9",
"_score": 1100.0,
"_source": {
"id": "1c2358b172d0079f4ee512ee9de147c9",
"autoIncrement": 12493.0
},
"fields": {
"displayGroup": [
"895e4d8613255ed06abc3f92a4bfd5b1"
]
},
"sort": [
0,
1100.0,
0,
12493,
"1c2358b172d0079f4ee512ee9de147c9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "57ab3aeed2fb02509f3a457a5bd7ec56",
"_score": 1100.0,
"_source": {
"id": "57ab3aeed2fb02509f3a457a5bd7ec56",
"autoIncrement": 12492.0
},
"fields": {
"displayGroup": [
"7f4b9deb523bd612fffe9be0feb0f465"
]
},
"sort": [
0,
1100.0,
0,
12492,
"57ab3aeed2fb02509f3a457a5bd7ec56"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d378452b1bbb42a582ce42e6fdaa39cd",
"_score": 1100.0,
"_source": {
"id": "d378452b1bbb42a582ce42e6fdaa39cd",
"autoIncrement": 12491.0
},
"fields": {
"displayGroup": [
"1549c43a527a43e0465595e229780772"
]
},
"sort": [
0,
1100.0,
0,
12491,
"d378452b1bbb42a582ce42e6fdaa39cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "30ffe04b2e516ac65e339f40e2be6f8d",
"_score": 1100.0,
"_source": {
"id": "30ffe04b2e516ac65e339f40e2be6f8d",
"autoIncrement": 12490.0
},
"fields": {
"displayGroup": [
"0e16434722e80e4d476fa57332a9a9dd"
]
},
"sort": [
0,
1100.0,
0,
12490,
"30ffe04b2e516ac65e339f40e2be6f8d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4531abc8f57977db8da2a837d39cc9d7",
"_score": 1100.0,
"_source": {
"id": "4531abc8f57977db8da2a837d39cc9d7",
"autoIncrement": 12489.0
},
"fields": {
"displayGroup": [
"7008da651d98c5f01bff9ad015b1d905"
]
},
"sort": [
0,
1100.0,
0,
12489,
"4531abc8f57977db8da2a837d39cc9d7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7df007b450711014b24c174fe1d1bdc",
"_score": 1100.0,
"_source": {
"id": "b7df007b450711014b24c174fe1d1bdc",
"autoIncrement": 12488.0
},
"fields": {
"displayGroup": [
"136812800c8819341a4b00c0837bd58f"
]
},
"sort": [
0,
1100.0,
0,
12488,
"b7df007b450711014b24c174fe1d1bdc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7fb2c8f22df06d7839a3ac631f714ad0",
"_score": 1100.0,
"_source": {
"id": "7fb2c8f22df06d7839a3ac631f714ad0",
"autoIncrement": 12487.0
},
"fields": {
"displayGroup": [
"a0e0b3e99f9d66cf68df637237dd6d24"
]
},
"sort": [
0,
1100.0,
0,
12487,
"7fb2c8f22df06d7839a3ac631f714ad0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ee318807d5283bbb3862af38ec7d03c",
"_score": 1100.0,
"_source": {
"id": "5ee318807d5283bbb3862af38ec7d03c",
"autoIncrement": 12486.0
},
"fields": {
"displayGroup": [
"529f242947d7f99b560337f1861fde91"
]
},
"sort": [
0,
1100.0,
0,
12486,
"5ee318807d5283bbb3862af38ec7d03c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b413be62174aa6be544449927075c89",
"_score": 1100.0,
"_source": {
"id": "9b413be62174aa6be544449927075c89",
"autoIncrement": 12485.0
},
"fields": {
"displayGroup": [
"eaf9835d8e5737ab73bb5c00442f6493"
]
},
"sort": [
0,
1100.0,
0,
12485,
"9b413be62174aa6be544449927075c89"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "726eb448839c926844d5eb681545fdfa",
"_score": 1100.0,
"_source": {
"id": "726eb448839c926844d5eb681545fdfa",
"autoIncrement": 12484.0
},
"fields": {
"displayGroup": [
"6163be3d97faccdcd6d173a4b67cbe53"
]
},
"sort": [
0,
1100.0,
0,
12484,
"726eb448839c926844d5eb681545fdfa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7b971a880c31843d1b04b64d78442e1b",
"_score": 1100.0,
"_source": {
"id": "7b971a880c31843d1b04b64d78442e1b",
"autoIncrement": 12483.0
},
"fields": {
"displayGroup": [
"95da5063f47c488def7b5e372d036933"
]
},
"sort": [
0,
1100.0,
0,
12483,
"7b971a880c31843d1b04b64d78442e1b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a9b6f6cef2bffff657245b96861768e5",
"_score": 1100.0,
"_source": {
"id": "a9b6f6cef2bffff657245b96861768e5",
"autoIncrement": 12482.0
},
"fields": {
"displayGroup": [
"63f0ab73c020b1925b684e8dc3025615"
]
},
"sort": [
0,
1100.0,
0,
12482,
"a9b6f6cef2bffff657245b96861768e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed396abc8cf1688e32a71d465ea0e194",
"_score": 1100.0,
"_source": {
"id": "ed396abc8cf1688e32a71d465ea0e194",
"autoIncrement": 12434.0
},
"fields": {
"displayGroup": [
"730409d738be86f87896b4199049a809"
]
},
"sort": [
0,
1100.0,
0,
12434,
"ed396abc8cf1688e32a71d465ea0e194"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c92a3904a449008847b5ae97ffb3aacf",
"_score": 1100.0,
"_source": {
"id": "c92a3904a449008847b5ae97ffb3aacf",
"autoIncrement": 12433.0
},
"fields": {
"displayGroup": [
"5967d8bd3f8d6a91bc4a6c0c67c7a75d"
]
},
"sort": [
0,
1100.0,
0,
12433,
"c92a3904a449008847b5ae97ffb3aacf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "93bbf65582bf43536672bdcf2e58fbd6",
"_score": 1100.0,
"_source": {
"id": "93bbf65582bf43536672bdcf2e58fbd6",
"autoIncrement": 12432.0
},
"fields": {
"displayGroup": [
"f9b933ff02526d13dbdd7cc0be646fd9"
]
},
"sort": [
0,
1100.0,
0,
12432,
"93bbf65582bf43536672bdcf2e58fbd6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "278adb699fd9e43b003602a91793384b",
"_score": 1100.0,
"_source": {
"id": "278adb699fd9e43b003602a91793384b",
"autoIncrement": 12431.0
},
"fields": {
"displayGroup": [
"2324ea5054692323bbac3869e5e50200"
]
},
"sort": [
0,
1100.0,
0,
12431,
"278adb699fd9e43b003602a91793384b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "30c75639c1ceb3d59d20ebf03e8d2085",
"_score": 1100.0,
"_source": {
"id": "30c75639c1ceb3d59d20ebf03e8d2085",
"autoIncrement": 12430.0
},
"fields": {
"displayGroup": [
"0f70e628423ec2ef2e8ee823c9a72893"
]
},
"sort": [
0,
1100.0,
0,
12430,
"30c75639c1ceb3d59d20ebf03e8d2085"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "169bb4ced02e38fe510732eedc3ed9d4",
"_score": 1100.0,
"_source": {
"id": "169bb4ced02e38fe510732eedc3ed9d4",
"autoIncrement": 12429.0
},
"fields": {
"displayGroup": [
"ae8c95e873b675255d0600097bf40756"
]
},
"sort": [
0,
1100.0,
0,
12429,
"169bb4ced02e38fe510732eedc3ed9d4"
]
}
]
},
"aggregations": {
"total-count": {
"value": 132
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.11 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":"c7e554079c9470408efcf23bf8efb40e"}},{"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"}},"range-anzahlSchubladen":{"stats":{"field":"attribute_anzahlSchubladen"}},"multi-ausfuehrungWerkbankplatte":{"composite":{"sources":[{"multi-ausfuehrungWerkbankplatte.sorting":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte","order":"ASC"}}},{"multi-ausfuehrungWerkbankplatte.key":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte"}}}],"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-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"range-traglast":{"stats":{"field":"attribute_traglast"}},"multi-anzahlTueren":{"composite":{"sources":[{"multi-anzahlTueren.sorting":{"terms":{"field":"attribute_anzahlTueren","order":"ASC"}}},{"multi-anzahlTueren.key":{"terms":{"field":"attribute_anzahlTueren"}}}],"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": "c7e554079c9470408efcf23bf8efb40e"
}
},
{
"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"
}
},
"range-anzahlSchubladen": {
"stats": {
"field": "attribute_anzahlSchubladen"
}
},
"multi-ausfuehrungWerkbankplatte": {
"composite": {
"sources": [
{
"multi-ausfuehrungWerkbankplatte.sorting": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungWerkbankplatte.key": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte"
}
}
}
],
"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-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"range-traglast": {
"stats": {
"field": "attribute_traglast"
}
},
"multi-anzahlTueren": {
"composite": {
"sources": [
{
"multi-anzahlTueren.sorting": {
"terms": {
"field": "attribute_anzahlTueren",
"order": "ASC"
}
}
},
{
"multi-anzahlTueren.key": {
"terms": {
"field": "attribute_anzahlTueren"
}
}
}
],
"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": 132,
"min": 266.0,
"max": 4758.0,
"avg": 1650.778409090909,
"sum": 217902.75
},
"rating-exists": {
"doc_count": 132,
"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": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "46b2f43cba12702078b4e0d3bfdae2bc",
"manufacturer-count-filter.key": "46b2f43cba12702078b4e0d3bfdae2bc"
},
"doc_count": 92
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 14
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "d784d3a73624983fdf4a1370019f096b",
"manufacturer-count-filter.key": "d784d3a73624983fdf4a1370019f096b"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 14
}
]
},
"bool-reduced": {
"doc_count": 92,
"bool-reduced": {
"value": 92
}
},
"width": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
},
"width-stats": {
"doc_count": 128,
"width-stats": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
}
},
"height": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
},
"height-stats": {
"doc_count": 127,
"height-stats": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
}
},
"tiefe": {
"count": 128,
"min": 500.0,
"max": 1000.0,
"avg": 761.171875,
"sum": 97430.0
},
"range-anzahlSchubladen": {
"count": 8,
"min": 1.0,
"max": 3.0,
"avg": 2.0,
"sum": 16.0
},
"multi-ausfuehrungWerkbankplatte": {
"after_key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"buckets": [
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche",
"multi-ausfuehrungWerkbankplatte.key": "Buche"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche-Riegel",
"multi-ausfuehrungWerkbankplatte.key": "Buche-Riegel"
},
"doc_count": 34
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "EGB-Melaminharzbeschichtet (ESD)",
"multi-ausfuehrungWerkbankplatte.key": "EGB-Melaminharzbeschichtet (ESD)"
},
"doc_count": 12
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Hartlaminat",
"multi-ausfuehrungWerkbankplatte.key": "Hartlaminat"
},
"doc_count": 14
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Melaminharzbeschichtet",
"multi-ausfuehrungWerkbankplatte.key": "Melaminharzbeschichtet"
},
"doc_count": 24
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"doc_count": 20
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Arbeitsplatzsysteme",
"multi-typModel.key": "Arbeitsplatzsysteme"
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Packtische",
"multi-typModel.key": "Packtische"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau"
},
"doc_count": 68
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe"
},
"doc_count": 14
},
{
"key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"doc_count": 6
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7035 lichtgrau",
"multi-farbe.key": "RAL 7035 lichtgrau"
},
"doc_count": 96
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"doc_count": 8
}
]
},
"range-traglast": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-anzahlTueren": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "46b2f43cba12702078b4e0d3bfdae2bc",
"doc_count": 92
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 14
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 14
},
{
"key": "d784d3a73624983fdf4a1370019f096b",
"doc_count": 8
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|