| 1 |
18.25 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":"7394bf9edab9971afccba078d6999126"}},{"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":504,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 568,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "7103c7b50b5f3e9cf3811a700413c332",
"_score": 100.0,
"_source": {
"id": "7103c7b50b5f3e9cf3811a700413c332",
"autoIncrement": 27260.0
},
"fields": {
"displayGroup": [
"2caf0740076033429e6ae9d210231e78"
]
},
"sort": [
0,
100.0,
0,
27260,
"7103c7b50b5f3e9cf3811a700413c332"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cf4d6068bda3e26689a849ea201ae053",
"_score": 100.0,
"_source": {
"id": "cf4d6068bda3e26689a849ea201ae053",
"autoIncrement": 27259.0
},
"fields": {
"displayGroup": [
"834f8241dc4bd755cc0413b1e6fb08cb"
]
},
"sort": [
0,
100.0,
0,
27259,
"cf4d6068bda3e26689a849ea201ae053"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "04a8110c948c60fb5a6a2802b863ab14",
"_score": 100.0,
"_source": {
"id": "04a8110c948c60fb5a6a2802b863ab14",
"autoIncrement": 27258.0
},
"fields": {
"displayGroup": [
"8ecf038b25ee34e489d384e13cd35098"
]
},
"sort": [
0,
100.0,
0,
27258,
"04a8110c948c60fb5a6a2802b863ab14"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7483e7e6e77968a515e7d55554f2c2f",
"_score": 100.0,
"_source": {
"id": "e7483e7e6e77968a515e7d55554f2c2f",
"autoIncrement": 27257.0
},
"fields": {
"displayGroup": [
"fd41abcc6a0b9194f390ea216c7135b5"
]
},
"sort": [
0,
100.0,
0,
27257,
"e7483e7e6e77968a515e7d55554f2c2f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f7f3a994db996515ccda361a98ef511e",
"_score": 100.0,
"_source": {
"id": "f7f3a994db996515ccda361a98ef511e",
"autoIncrement": 27244.0
},
"fields": {
"displayGroup": [
"6c7cda66c8bcfbf1d39174dd6d983d8b"
]
},
"sort": [
0,
100.0,
0,
27244,
"f7f3a994db996515ccda361a98ef511e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "59945a2cee1588d69abf9f6d6d16956c",
"_score": 100.0,
"_source": {
"id": "59945a2cee1588d69abf9f6d6d16956c",
"autoIncrement": 27243.0
},
"fields": {
"displayGroup": [
"ff23194c454ce8afe8b9af1130c13e9a"
]
},
"sort": [
0,
100.0,
0,
27243,
"59945a2cee1588d69abf9f6d6d16956c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8b94ddfd58d7264429a35260fc7ab585",
"_score": 100.0,
"_source": {
"id": "8b94ddfd58d7264429a35260fc7ab585",
"autoIncrement": 27242.0
},
"fields": {
"displayGroup": [
"82c99b6d874a7cca6291efe4a661b202"
]
},
"sort": [
0,
100.0,
0,
27242,
"8b94ddfd58d7264429a35260fc7ab585"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eadbaa1a5a57af27f5d3b091eea28672",
"_score": 100.0,
"_source": {
"id": "eadbaa1a5a57af27f5d3b091eea28672",
"autoIncrement": 27241.0
},
"fields": {
"displayGroup": [
"4766f6943beeba60a73a200f8aa0f200"
]
},
"sort": [
0,
100.0,
0,
27241,
"eadbaa1a5a57af27f5d3b091eea28672"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "31c665a06bd22ce2943d60f0c4312917",
"_score": 100.0,
"_source": {
"id": "31c665a06bd22ce2943d60f0c4312917",
"autoIncrement": 27240.0
},
"fields": {
"displayGroup": [
"31a9d72af76af71f678dd91f8213d034"
]
},
"sort": [
0,
100.0,
0,
27240,
"31c665a06bd22ce2943d60f0c4312917"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a89bcc4dd0ed587614879a9d96f8a9ae",
"_score": 100.0,
"_source": {
"id": "a89bcc4dd0ed587614879a9d96f8a9ae",
"autoIncrement": 27239.0
},
"fields": {
"displayGroup": [
"3f48bcd14e0aaf630ff9f0df6cbb5c8e"
]
},
"sort": [
0,
100.0,
0,
27239,
"a89bcc4dd0ed587614879a9d96f8a9ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "453e37bbdf214d2bba9b41c9a625c94b",
"_score": 100.0,
"_source": {
"id": "453e37bbdf214d2bba9b41c9a625c94b",
"autoIncrement": 27238.0
},
"fields": {
"displayGroup": [
"805ad05b5cd1ace1c9fb121c3fed54fc"
]
},
"sort": [
0,
100.0,
0,
27238,
"453e37bbdf214d2bba9b41c9a625c94b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ee7eb0696f0727cc07436308b5a472f",
"_score": 100.0,
"_source": {
"id": "5ee7eb0696f0727cc07436308b5a472f",
"autoIncrement": 27237.0
},
"fields": {
"displayGroup": [
"5127c46687f1bcbea6c9b82b704a9242"
]
},
"sort": [
0,
100.0,
0,
27237,
"5ee7eb0696f0727cc07436308b5a472f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fa1a030554aa6735e19dd1fee779128d",
"_score": 100.0,
"_source": {
"id": "fa1a030554aa6735e19dd1fee779128d",
"autoIncrement": 27236.0
},
"fields": {
"displayGroup": [
"4f2e051ebe8d65d4644c43cb3bfbcea4"
]
},
"sort": [
0,
100.0,
0,
27236,
"fa1a030554aa6735e19dd1fee779128d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c5f8064b6fef29e5ee00a3fa967231a9",
"_score": 100.0,
"_source": {
"id": "c5f8064b6fef29e5ee00a3fa967231a9",
"autoIncrement": 27235.0
},
"fields": {
"displayGroup": [
"f48366af7df4e7cdc2cf8f9a407cf014"
]
},
"sort": [
0,
100.0,
0,
27235,
"c5f8064b6fef29e5ee00a3fa967231a9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "39847c714f962b2e847239a48f6787b1",
"_score": 100.0,
"_source": {
"id": "39847c714f962b2e847239a48f6787b1",
"autoIncrement": 27234.0
},
"fields": {
"displayGroup": [
"710775e2abeb5306be31005df056d455"
]
},
"sort": [
0,
100.0,
0,
27234,
"39847c714f962b2e847239a48f6787b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fba35c82c3b8647ec24641df1eb02776",
"_score": 100.0,
"_source": {
"id": "fba35c82c3b8647ec24641df1eb02776",
"autoIncrement": 27233.0
},
"fields": {
"displayGroup": [
"ea51febd48a384e2365c4f3d8c057087"
]
},
"sort": [
0,
100.0,
0,
27233,
"fba35c82c3b8647ec24641df1eb02776"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "33840421eedb4fc98f27ce8ca9e04a3f",
"_score": 100.0,
"_source": {
"id": "33840421eedb4fc98f27ce8ca9e04a3f",
"autoIncrement": 27221.0
},
"fields": {
"displayGroup": [
"9f2a17febb8b725d42ae4ddf4e6a8791"
]
},
"sort": [
0,
100.0,
0,
27221,
"33840421eedb4fc98f27ce8ca9e04a3f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c7c4df131004779eed78a8e69f887174",
"_score": 100.0,
"_source": {
"id": "c7c4df131004779eed78a8e69f887174",
"autoIncrement": 27220.0
},
"fields": {
"displayGroup": [
"a148f7fdd76fdae72d21d28c4ffe4d9a"
]
},
"sort": [
0,
100.0,
0,
27220,
"c7c4df131004779eed78a8e69f887174"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cc78c3b4145d01af49c71fcaf65d34b1",
"_score": 100.0,
"_source": {
"id": "cc78c3b4145d01af49c71fcaf65d34b1",
"autoIncrement": 27219.0
},
"fields": {
"displayGroup": [
"c4630ebb3fff4310f670ce0ccb1d3034"
]
},
"sort": [
0,
100.0,
0,
27219,
"cc78c3b4145d01af49c71fcaf65d34b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37bad448d1bb9581b53ce7f151cf4ee2",
"_score": 100.0,
"_source": {
"id": "37bad448d1bb9581b53ce7f151cf4ee2",
"autoIncrement": 27218.0
},
"fields": {
"displayGroup": [
"1ad10ea5645e70e2063693dba7fc906a"
]
},
"sort": [
0,
100.0,
0,
27218,
"37bad448d1bb9581b53ce7f151cf4ee2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0cdbced5b870999e9cf34cd395430f92",
"_score": 100.0,
"_source": {
"id": "0cdbced5b870999e9cf34cd395430f92",
"autoIncrement": 27217.0
},
"fields": {
"displayGroup": [
"79ad7cc3098cfef3623962efd4d4b542"
]
},
"sort": [
0,
100.0,
0,
27217,
"0cdbced5b870999e9cf34cd395430f92"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c730c436ff87c7770e4306108c3b0aef",
"_score": 100.0,
"_source": {
"id": "c730c436ff87c7770e4306108c3b0aef",
"autoIncrement": 27216.0
},
"fields": {
"displayGroup": [
"ab9825c848dab021c4f478615bd12a5b"
]
},
"sort": [
0,
100.0,
0,
27216,
"c730c436ff87c7770e4306108c3b0aef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "51c86b3a9127918b06b9f48231841e47",
"_score": 100.0,
"_source": {
"id": "51c86b3a9127918b06b9f48231841e47",
"autoIncrement": 27215.0
},
"fields": {
"displayGroup": [
"8a88cf5368c2785ff678c8efccff186e"
]
},
"sort": [
0,
100.0,
0,
27215,
"51c86b3a9127918b06b9f48231841e47"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4cd86a40a6a6d6bed4f43d5df1180b16",
"_score": 100.0,
"_source": {
"id": "4cd86a40a6a6d6bed4f43d5df1180b16",
"autoIncrement": 27214.0
},
"fields": {
"displayGroup": [
"1b1d0001b36919962aae682a804ea2a8"
]
},
"sort": [
0,
100.0,
0,
27214,
"4cd86a40a6a6d6bed4f43d5df1180b16"
]
}
]
},
"aggregations": {
"total-count": {
"value": 568
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.83 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":"7394bf9edab9971afccba078d6999126"}},{"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-anzahlEbenen":{"stats":{"field":"attribute_anzahlEbenen"}},"multi-fachbodenmaterial":{"composite":{"sources":[{"multi-fachbodenmaterial.sorting":{"terms":{"field":"attribute_fachbodenmaterial","order":"ASC"}}},{"multi-fachbodenmaterial.key":{"terms":{"field":"attribute_fachbodenmaterial"}}}],"size":"99999"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"range-laengeQuertraverse":{"stats":{"field":"attribute_laengeQuertraverse"}},"multi-fachbreite":{"composite":{"sources":[{"multi-fachbreite.sorting":{"terms":{"field":"attribute_fachbreite","order":"ASC"}}},{"multi-fachbreite.key":{"terms":{"field":"attribute_fachbreite"}}}],"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-feldlast":{"stats":{"field":"attribute_feldlast"}},"multi-oberflaeche":{"composite":{"sources":[{"multi-oberflaeche.sorting":{"terms":{"field":"attribute_oberflaeche","order":"ASC"}}},{"multi-oberflaeche.key":{"terms":{"field":"attribute_oberflaeche"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"range-fachbodenTragkraft":{"stats":{"field":"attribute_fachbodenTragkraft"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"multi-farbeRahmen":{"composite":{"sources":[{"multi-farbeRahmen.sorting":{"terms":{"field":"attribute_farbeRahmen","order":"ASC"}}},{"multi-farbeRahmen.key":{"terms":{"field":"attribute_farbeRahmen"}}}],"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": "7394bf9edab9971afccba078d6999126"
}
},
{
"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-anzahlEbenen": {
"stats": {
"field": "attribute_anzahlEbenen"
}
},
"multi-fachbodenmaterial": {
"composite": {
"sources": [
{
"multi-fachbodenmaterial.sorting": {
"terms": {
"field": "attribute_fachbodenmaterial",
"order": "ASC"
}
}
},
{
"multi-fachbodenmaterial.key": {
"terms": {
"field": "attribute_fachbodenmaterial"
}
}
}
],
"size": "99999"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"range-laengeQuertraverse": {
"stats": {
"field": "attribute_laengeQuertraverse"
}
},
"multi-fachbreite": {
"composite": {
"sources": [
{
"multi-fachbreite.sorting": {
"terms": {
"field": "attribute_fachbreite",
"order": "ASC"
}
}
},
{
"multi-fachbreite.key": {
"terms": {
"field": "attribute_fachbreite"
}
}
}
],
"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-feldlast": {
"stats": {
"field": "attribute_feldlast"
}
},
"multi-oberflaeche": {
"composite": {
"sources": [
{
"multi-oberflaeche.sorting": {
"terms": {
"field": "attribute_oberflaeche",
"order": "ASC"
}
}
},
{
"multi-oberflaeche.key": {
"terms": {
"field": "attribute_oberflaeche"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"range-fachbodenTragkraft": {
"stats": {
"field": "attribute_fachbodenTragkraft"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"multi-farbeRahmen": {
"composite": {
"sources": [
{
"multi-farbeRahmen.sorting": {
"terms": {
"field": "attribute_farbeRahmen",
"order": "ASC"
}
}
},
{
"multi-farbeRahmen.key": {
"terms": {
"field": "attribute_farbeRahmen"
}
}
}
],
"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": 568,
"min": 0.36,
"max": 2349.0,
"avg": 145.45015845070424,
"sum": 82615.69
},
"rating-exists": {
"doc_count": 568,
"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": "1acbf8858846ac1ca47b6395e9eca5e2",
"manufacturer-count-filter.key": "1acbf8858846ac1ca47b6395e9eca5e2"
},
"doc_count": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 81
},
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 330
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"width": {
"count": 378,
"min": 300.0,
"max": 2700.0,
"avg": 1207.2354497354497,
"sum": 456335.0
},
"width-stats": {
"doc_count": 378,
"width-stats": {
"count": 378,
"min": 300.0,
"max": 2700.0,
"avg": 1207.2354497354497,
"sum": 456335.0
}
},
"height": {
"count": 154,
"min": 75.0,
"max": 3000.0,
"avg": 1575.0454545454545,
"sum": 242557.0
},
"height-stats": {
"doc_count": 154,
"height-stats": {
"count": 154,
"min": 75.0,
"max": 3000.0,
"avg": 1575.0454545454545,
"sum": 242557.0
}
},
"tiefe": {
"count": 418,
"min": 130.0,
"max": 6000.0,
"avg": 626.9569377990431,
"sum": 262068.0
},
"range-anzahlEbenen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-fachbodenmaterial": {
"buckets": []
},
"multi-regalausfuehrung": {
"buckets": []
},
"range-laengeQuertraverse": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-fachbreite": {
"buckets": []
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Ausrollregale",
"multi-typModel.key": "Zubeh\u00f6r Ausrollregale"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Auszugregale",
"multi-typModel.key": "Zubeh\u00f6r Auszugregale"
},
"doc_count": 73
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 430
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kragarmregale",
"multi-typModel.key": "Zubeh\u00f6r Kragarmregale"
},
"doc_count": 13
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Langgutregale",
"multi-typModel.key": "Zubeh\u00f6r Langgutregale"
},
"doc_count": 9
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Palettenregale",
"multi-typModel.key": "Zubeh\u00f6r Palettenregale"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Reifenregale",
"multi-typModel.key": "Zubeh\u00f6r Reifenregale"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schlauchregale",
"multi-typModel.key": "Zubeh\u00f6r Schlauchregale"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Wabenregale",
"multi-typModel.key": "Zubeh\u00f6r Wabenregale"
},
"doc_count": 6
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"doc_count": 14
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 5012 lichtblau",
"multi-farbe.key": "RAL 5012 lichtblau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "RAL 7035 lichtgrau",
"multi-farbe.key": "RAL 7035 lichtgrau"
},
"doc_count": 13
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a0\u00a05012 lichtblau",
"multi-farbe.key": "RAL\u00a0\u00a05012 lichtblau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a0\u00a07035 lichtgrau",
"multi-farbe.key": "RAL\u00a0\u00a07035 lichtgrau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "blau",
"multi-farbe.key": "blau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 38
}
]
},
"range-feldlast": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-oberflaeche": {
"after_key": {
"multi-oberflaeche.sorting": "verzinkt",
"multi-oberflaeche.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-oberflaeche.sorting": "verzinkt",
"multi-oberflaeche.key": "verzinkt"
},
"doc_count": 7
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "975 kg",
"multi-fachlast.key": "975 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "1090 kg",
"multi-fachlast.key": "1090 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "150 kg",
"multi-fachlast.key": "150 kg"
},
"doc_count": 7
},
{
"key": {
"multi-fachlast.sorting": "374 kg",
"multi-fachlast.key": "374 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "464 kg",
"multi-fachlast.key": "464 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "467 kg",
"multi-fachlast.key": "467 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "561 kg",
"multi-fachlast.key": "561 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "580 kg",
"multi-fachlast.key": "580 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "622 kg",
"multi-fachlast.key": "622 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "650 kg",
"multi-fachlast.key": "650 kg"
},
"doc_count": 3
},
{
"key": {
"multi-fachlast.sorting": "656 kg",
"multi-fachlast.key": "656 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "660 kg",
"multi-fachlast.key": "660 kg"
},
"doc_count": 4
},
{
"key": {
"multi-fachlast.sorting": "696 kg",
"multi-fachlast.key": "696 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "700 kg",
"multi-fachlast.key": "700 kg"
},
"doc_count": 4
},
{
"key": {
"multi-fachlast.sorting": "777 kg",
"multi-fachlast.key": "777 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "790 kg",
"multi-fachlast.key": "790 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "812 kg",
"multi-fachlast.key": "812 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "933 kg",
"multi-fachlast.key": "933 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "975 kg",
"multi-fachlast.key": "975 kg"
},
"doc_count": 1
}
]
},
"range-fachbodenTragkraft": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-anzahlFachboeden": {
"buckets": []
},
"multi-farbeRahmen": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 330
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|