| 1 |
14.81 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":"d65d88a8b8740496fcde80b01c793595"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 93,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "0f7214dfb86b1283f5fdff84c8c0f1cb",
"_score": 1100.0,
"_source": {
"id": "0f7214dfb86b1283f5fdff84c8c0f1cb",
"autoIncrement": 118989.0
},
"fields": {
"displayGroup": [
"f034c27b52bf5bc8841a386bcda67f30"
]
},
"sort": [
0,
1100.0,
0,
118989,
"0f7214dfb86b1283f5fdff84c8c0f1cb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fce63f336a9458584498a24dd77a2bd4",
"_score": 1100.0,
"_source": {
"id": "fce63f336a9458584498a24dd77a2bd4",
"autoIncrement": 65727.0
},
"fields": {
"displayGroup": [
"f0fecef2b617a1f99e5e86accf116c74"
]
},
"sort": [
0,
1100.0,
0,
65727,
"fce63f336a9458584498a24dd77a2bd4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3ef71674b41b933f80fcbc81e476ff7f",
"_score": 1100.0,
"_source": {
"id": "3ef71674b41b933f80fcbc81e476ff7f",
"autoIncrement": 65468.0
},
"fields": {
"displayGroup": [
"12f6d7063d822fa2e71dc35b96852f7a"
]
},
"sort": [
0,
1100.0,
0,
65468,
"3ef71674b41b933f80fcbc81e476ff7f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1659b3fe4bc3237901988b2489e474b1",
"_score": 1100.0,
"_source": {
"id": "1659b3fe4bc3237901988b2489e474b1",
"autoIncrement": 65465.0
},
"fields": {
"displayGroup": [
"4de312d5580e95df51cc01b6c4f07095"
]
},
"sort": [
0,
1100.0,
0,
65465,
"1659b3fe4bc3237901988b2489e474b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e70aff2fdcfde1fd5fda77fbc90a0cb4",
"_score": 1100.0,
"_source": {
"id": "e70aff2fdcfde1fd5fda77fbc90a0cb4",
"autoIncrement": 65464.0
},
"fields": {
"displayGroup": [
"fe33d1f0dfc4cd65656236d05fe1ddf5"
]
},
"sort": [
0,
1100.0,
0,
65464,
"e70aff2fdcfde1fd5fda77fbc90a0cb4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a8a986a9345ea17b57931ff97337a1f3",
"_score": 1100.0,
"_source": {
"id": "a8a986a9345ea17b57931ff97337a1f3",
"autoIncrement": 65463.0
},
"fields": {
"displayGroup": [
"87006ca611267c3666f6191a2052e62b"
]
},
"sort": [
0,
1100.0,
0,
65463,
"a8a986a9345ea17b57931ff97337a1f3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "499d995947ce1ffdfe8a21c7510e4738",
"_score": 1100.0,
"_source": {
"id": "499d995947ce1ffdfe8a21c7510e4738",
"autoIncrement": 65462.0
},
"fields": {
"displayGroup": [
"08b89c960b590005cbfdd82d4c6b07df"
]
},
"sort": [
0,
1100.0,
0,
65462,
"499d995947ce1ffdfe8a21c7510e4738"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "edcb3265f5f7e8bf13f6a5da325fa204",
"_score": 1100.0,
"_source": {
"id": "edcb3265f5f7e8bf13f6a5da325fa204",
"autoIncrement": 65461.0
},
"fields": {
"displayGroup": [
"d09ff397a297432097eaaa584789d2e4"
]
},
"sort": [
0,
1100.0,
0,
65461,
"edcb3265f5f7e8bf13f6a5da325fa204"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e0b5dfc17102cceaa250241ee47cb5a7",
"_score": 1100.0,
"_source": {
"id": "e0b5dfc17102cceaa250241ee47cb5a7",
"autoIncrement": 65460.0
},
"fields": {
"displayGroup": [
"176ec2184a7814f6cb1ae4b36931f136"
]
},
"sort": [
0,
1100.0,
0,
65460,
"e0b5dfc17102cceaa250241ee47cb5a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2d3a8c24a80a3135c2d7034895a79f25",
"_score": 1100.0,
"_source": {
"id": "2d3a8c24a80a3135c2d7034895a79f25",
"autoIncrement": 65459.0
},
"fields": {
"displayGroup": [
"4cc1fcdb21b6a26c4ca262c2c55d03a2"
]
},
"sort": [
0,
1100.0,
0,
65459,
"2d3a8c24a80a3135c2d7034895a79f25"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a767abf486a85006ec1713afaf573dba",
"_score": 1100.0,
"_source": {
"id": "a767abf486a85006ec1713afaf573dba",
"autoIncrement": 65449.0
},
"fields": {
"displayGroup": [
"95568f2981596013bfa3e22972fd4514"
]
},
"sort": [
0,
1100.0,
0,
65449,
"a767abf486a85006ec1713afaf573dba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a19862e90153203d6ab900c1d4a5df63",
"_score": 1100.0,
"_source": {
"id": "a19862e90153203d6ab900c1d4a5df63",
"autoIncrement": 65447.0
},
"fields": {
"displayGroup": [
"eb82b074f7d8c42c055e351820f6191e"
]
},
"sort": [
0,
1100.0,
0,
65447,
"a19862e90153203d6ab900c1d4a5df63"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d196597e652cfb278633bf0ea94171c1",
"_score": 1100.0,
"_source": {
"id": "d196597e652cfb278633bf0ea94171c1",
"autoIncrement": 65445.0
},
"fields": {
"displayGroup": [
"a3138afe29bf41a304170c06e4052b0f"
]
},
"sort": [
0,
1100.0,
0,
65445,
"d196597e652cfb278633bf0ea94171c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2246c6770158932b626108c7683dad39",
"_score": 1100.0,
"_source": {
"id": "2246c6770158932b626108c7683dad39",
"autoIncrement": 65444.0
},
"fields": {
"displayGroup": [
"dbdf92cc87b12f07c43ace2b88da9fe5"
]
},
"sort": [
0,
1100.0,
0,
65444,
"2246c6770158932b626108c7683dad39"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ae5235290712cdb2f2f851f53319f75",
"_score": 1100.0,
"_source": {
"id": "9ae5235290712cdb2f2f851f53319f75",
"autoIncrement": 65443.0
},
"fields": {
"displayGroup": [
"cc7c48305b666d27ed0839f4622dd138"
]
},
"sort": [
0,
1100.0,
0,
65443,
"9ae5235290712cdb2f2f851f53319f75"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "078ccf575a61d0e129a811561babac97",
"_score": 1100.0,
"_source": {
"id": "078ccf575a61d0e129a811561babac97",
"autoIncrement": 65442.0
},
"fields": {
"displayGroup": [
"7aed51975c12181552c2b3790e057b1c"
]
},
"sort": [
0,
1100.0,
0,
65442,
"078ccf575a61d0e129a811561babac97"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0b2fb3c82386a4d9fa9e6da668f2c75b",
"_score": 1100.0,
"_source": {
"id": "0b2fb3c82386a4d9fa9e6da668f2c75b",
"autoIncrement": 65441.0
},
"fields": {
"displayGroup": [
"a761df66febc420b632075e9da5d4cd5"
]
},
"sort": [
0,
1100.0,
0,
65441,
"0b2fb3c82386a4d9fa9e6da668f2c75b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ec711d0f382571e14869647378267693",
"_score": 1100.0,
"_source": {
"id": "ec711d0f382571e14869647378267693",
"autoIncrement": 65440.0
},
"fields": {
"displayGroup": [
"053d7207bd0938cb40888a4b07d175a4"
]
},
"sort": [
0,
1100.0,
0,
65440,
"ec711d0f382571e14869647378267693"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "48917b7b60defa68f89b13700daec8e5",
"_score": 1100.0,
"_source": {
"id": "48917b7b60defa68f89b13700daec8e5",
"autoIncrement": 65439.0
},
"fields": {
"displayGroup": [
"44f331d13e8ec6e3d4da57a857662ab9"
]
},
"sort": [
0,
1100.0,
0,
65439,
"48917b7b60defa68f89b13700daec8e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b34d763ae229aa204b63a43493928fe4",
"_score": 1100.0,
"_source": {
"id": "b34d763ae229aa204b63a43493928fe4",
"autoIncrement": 65432.0
},
"fields": {
"displayGroup": [
"3abc2d5709d42e5cb7f87d3df60a5409"
]
},
"sort": [
0,
1100.0,
0,
65432,
"b34d763ae229aa204b63a43493928fe4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "902fc5d4d7ec16ddebab436850183ab3",
"_score": 1100.0,
"_source": {
"id": "902fc5d4d7ec16ddebab436850183ab3",
"autoIncrement": 65431.0
},
"fields": {
"displayGroup": [
"4bc1abda3a26f238f4878c3b7b9320a6"
]
},
"sort": [
0,
1100.0,
0,
65431,
"902fc5d4d7ec16ddebab436850183ab3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b2edb544e4eb8b317a924644e5e02e91",
"_score": 1100.0,
"_source": {
"id": "b2edb544e4eb8b317a924644e5e02e91",
"autoIncrement": 65331.0
},
"fields": {
"displayGroup": [
"4e7ba1d776ba3afff6b9fcfa8b5cc2eb"
]
},
"sort": [
0,
1100.0,
0,
65331,
"b2edb544e4eb8b317a924644e5e02e91"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32886ec7f30f21f1fc50159a650831da",
"_score": 1100.0,
"_source": {
"id": "32886ec7f30f21f1fc50159a650831da",
"autoIncrement": 65330.0
},
"fields": {
"displayGroup": [
"a86399ae12ba7f119d5a9cc5d475094a"
]
},
"sort": [
0,
1100.0,
0,
65330,
"32886ec7f30f21f1fc50159a650831da"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a125de0faffa8c7ec125a70a91415a43",
"_score": 1100.0,
"_source": {
"id": "a125de0faffa8c7ec125a70a91415a43",
"autoIncrement": 65329.0
},
"fields": {
"displayGroup": [
"829fdbeabad516dcdf984bda8682768d"
]
},
"sort": [
0,
1100.0,
0,
65329,
"a125de0faffa8c7ec125a70a91415a43"
]
}
]
},
"aggregations": {
"total-count": {
"value": 93
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.05 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":"d65d88a8b8740496fcde80b01c793595"}},{"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-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-ausfuehrungTrennwandelement":{"composite":{"sources":[{"multi-ausfuehrungTrennwandelement.sorting":{"terms":{"field":"attribute_ausfuehrungTrennwandelement","order":"ASC"}}},{"multi-ausfuehrungTrennwandelement.key":{"terms":{"field":"attribute_ausfuehrungTrennwandelement"}}}],"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": "d65d88a8b8740496fcde80b01c793595"
}
},
{
"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-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-ausfuehrungTrennwandelement": {
"composite": {
"sources": [
{
"multi-ausfuehrungTrennwandelement.sorting": {
"terms": {
"field": "attribute_ausfuehrungTrennwandelement",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungTrennwandelement.key": {
"terms": {
"field": "attribute_ausfuehrungTrennwandelement"
}
}
}
],
"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": 93,
"min": 34.5,
"max": 8299.0,
"avg": 1257.9408602150538,
"sum": 116988.5
},
"rating-exists": {
"doc_count": 93,
"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": "d4209d6f7a6d6d1745ec549336714d81",
"manufacturer-count-filter.key": "d4209d6f7a6d6d1745ec549336714d81"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "370f952a6a12b228a3e6113f77b76902",
"manufacturer-count-filter.key": "370f952a6a12b228a3e6113f77b76902"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "4616606d5a8590d8c1d305d50dce2f73",
"manufacturer-count-filter.key": "4616606d5a8590d8c1d305d50dce2f73"
},
"doc_count": 82
},
{
"key": {
"manufacturer-count-filter.sorting": "d4209d6f7a6d6d1745ec549336714d81",
"manufacturer-count-filter.key": "d4209d6f7a6d6d1745ec549336714d81"
},
"doc_count": 7
}
]
},
"bool-reduced": {
"doc_count": 10,
"bool-reduced": {
"value": 10
}
},
"width": {
"count": 60,
"min": 250.0,
"max": 5000.0,
"avg": 1867.5,
"sum": 112050.0
},
"width-stats": {
"doc_count": 60,
"width-stats": {
"count": 60,
"min": 250.0,
"max": 5000.0,
"avg": 1867.5,
"sum": 112050.0
}
},
"height": {
"count": 76,
"min": 650.0,
"max": 3000.0,
"avg": 1885.5263157894738,
"sum": 143300.0
},
"height-stats": {
"doc_count": 76,
"height-stats": {
"count": 76,
"min": 650.0,
"max": 3000.0,
"avg": 1885.5263157894738,
"sum": 143300.0
}
},
"tiefe": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Sonstige Trennwandsysteme",
"multi-typModel.key": "Sonstige Trennwandsysteme"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Lager- und Maschinentrennwandsysteme",
"multi-typModel.key": "Lager- und Maschinentrennwandsysteme"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Lager-Trennwandsysteme",
"multi-typModel.key": "Lager-Trennwandsysteme"
},
"doc_count": 76
},
{
"key": {
"multi-typModel.sorting": "Sonstige Trennwandsysteme",
"multi-typModel.key": "Sonstige Trennwandsysteme"
},
"doc_count": 7
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 1018 Zinkgelb",
"multi-farbe.key": "RAL 1018 Zinkgelb"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "RAL 1018 zinkgelb",
"multi-farbe.key": "RAL 1018 zinkgelb"
},
"doc_count": 15
},
{
"key": {
"multi-farbe.sorting": "RAL 7037 Staubgrau",
"multi-farbe.key": "RAL 7037 Staubgrau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "RAL 7037 staubgrau",
"multi-farbe.key": "RAL 7037 staubgrau"
},
"doc_count": 49
},
{
"key": {
"multi-farbe.sorting": "RAL 9005 Tiefschwarz",
"multi-farbe.key": "RAL 9005 Tiefschwarz"
},
"doc_count": 9
},
{
"key": {
"multi-farbe.sorting": "RAL 9005 tiefschwarz",
"multi-farbe.key": "RAL 9005 tiefschwarz"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 3
}
]
},
"multi-ausfuehrungTrennwandelement": {
"after_key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Wandelement"
},
"buckets": [
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs und Endpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs und Endpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs- und Endpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs- und Endpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs-\/End-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs-\/End-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Doppelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Doppelt\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Einzelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Einzelt\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Schiebet\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Schiebet\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Ausgabeelement mit Ausgabetisch",
"multi-ausfuehrungTrennwandelement.key": "Ausgabeelement mit Ausgabetisch"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Doppel-Fl\u00fcgeltor",
"multi-ausfuehrungTrennwandelement.key": "Doppel-Fl\u00fcgeltor"
},
"doc_count": 8
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Doppel-Fl\u00fcgelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Doppel-Fl\u00fcgelt\u00fcr"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Eck-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Eck-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Eckpfosten",
"multi-ausfuehrungTrennwandelement.key": "Eckpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Falttor",
"multi-ausfuehrungTrennwandelement.key": "Falttor"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Fluegeltuer",
"multi-ausfuehrungTrennwandelement.key": "Fluegeltuer"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Fl\u00fcgelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Fl\u00fcgelt\u00fcr"
},
"doc_count": 3
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Freitragendes Schiebetor",
"multi-ausfuehrungTrennwandelement.key": "Freitragendes Schiebetor"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Klinkengriff f\u00fcr Schiebet\u00fcren, abschlie\u00dfbar",
"multi-ausfuehrungTrennwandelement.key": "Klinkengriff f\u00fcr Schiebet\u00fcren, abschlie\u00dfbar"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Mittel-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Mittel-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Mittelpfosten",
"multi-ausfuehrungTrennwandelement.key": "Mittelpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Radsatz",
"multi-ausfuehrungTrennwandelement.key": "Radsatz"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Schiebetuer",
"multi-ausfuehrungTrennwandelement.key": "Schiebetuer"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Schiebet\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Schiebet\u00fcr"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Sicherheitsschalter f\u00fcr Einzel- und Doppel-Fl\u00fcgelt\u00fcren",
"multi-ausfuehrungTrennwandelement.key": "Sicherheitsschalter f\u00fcr Einzel- und Doppel-Fl\u00fcgelt\u00fcren"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Sicherheitsschalter f\u00fcr Schiebet\u00fcren",
"multi-ausfuehrungTrennwandelement.key": "Sicherheitsschalter f\u00fcr Schiebet\u00fcren"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Stellfu\u00df",
"multi-ausfuehrungTrennwandelement.key": "Stellfu\u00df"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "T-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "T-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "T-Pfosten",
"multi-ausfuehrungTrennwandelement.key": "T-Pfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Aufsatzelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Aufsatzelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Eck-Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Eck-Wandelement"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Eckelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Eckelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Element",
"multi-ausfuehrungTrennwandelement.key": "Vario-Element"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Wandelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandanschlussprofil",
"multi-ausfuehrungTrennwandelement.key": "Wandanschlussprofil"
},
"doc_count": 3
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Wandelement"
},
"doc_count": 13
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "4616606d5a8590d8c1d305d50dce2f73",
"doc_count": 82
},
{
"key": "d4209d6f7a6d6d1745ec549336714d81",
"doc_count": 7
},
{
"key": "370f952a6a12b228a3e6113f77b76902",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|