| 1 |
15.87 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":"998bbb1a17f3c5e003f1672843efb68c"}},{"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":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 33,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "e1fcc0378ba86b1ee173299964708e38",
"_score": 1100.0,
"_source": {
"id": "e1fcc0378ba86b1ee173299964708e38",
"autoIncrement": 137647.0
},
"fields": {
"displayGroup": [
"def4fdf59493f29da6a1b23b2a2a4ba8"
]
},
"sort": [
0,
1100.0,
0,
137647,
"e1fcc0378ba86b1ee173299964708e38"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "149a1e6a05004b952f1ea128ae4d5eea",
"_score": 1100.0,
"_source": {
"id": "149a1e6a05004b952f1ea128ae4d5eea",
"autoIncrement": 137518.0
},
"fields": {
"displayGroup": [
"41a6f15c8bdb3188723f6a946ab82ae2"
]
},
"sort": [
0,
1100.0,
0,
137518,
"149a1e6a05004b952f1ea128ae4d5eea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3abb75cf564c90fda056c4dcec709cfe",
"_score": 1100.0,
"_source": {
"id": "3abb75cf564c90fda056c4dcec709cfe",
"autoIncrement": 137494.0
},
"fields": {
"displayGroup": [
"1f41dcc62124b1b658ee8eb8bf169509"
]
},
"sort": [
0,
1100.0,
0,
137494,
"3abb75cf564c90fda056c4dcec709cfe"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "09eb35c4972154935f29afb63f971b56",
"_score": 1100.0,
"_source": {
"id": "09eb35c4972154935f29afb63f971b56",
"autoIncrement": 129082.0
},
"fields": {
"displayGroup": [
"749b83dbb628e32d2f33ef1f1599dc88"
]
},
"sort": [
0,
1100.0,
0,
129082,
"09eb35c4972154935f29afb63f971b56"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f8afd3bcaf3ab85ff7bacf64fa3b3cc7",
"_score": 1100.0,
"_source": {
"id": "f8afd3bcaf3ab85ff7bacf64fa3b3cc7",
"autoIncrement": 129081.0
},
"fields": {
"displayGroup": [
"3f431633ea132025fce865fb20f8672e"
]
},
"sort": [
0,
1100.0,
0,
129081,
"f8afd3bcaf3ab85ff7bacf64fa3b3cc7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "afbdcb0ca7925348b8c52e3e9b7a4198",
"_score": 1100.0,
"_source": {
"id": "afbdcb0ca7925348b8c52e3e9b7a4198",
"autoIncrement": 129080.0
},
"fields": {
"displayGroup": [
"336d73ae9e54e59d0d4362f52b52d278"
]
},
"sort": [
0,
1100.0,
0,
129080,
"afbdcb0ca7925348b8c52e3e9b7a4198"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fa98f19ac0067f0ad3585a58bbe51aae",
"_score": 1100.0,
"_source": {
"id": "fa98f19ac0067f0ad3585a58bbe51aae",
"autoIncrement": 129079.0
},
"fields": {
"displayGroup": [
"c0e37b3830825f2dc500ee0fec055512"
]
},
"sort": [
0,
1100.0,
0,
129079,
"fa98f19ac0067f0ad3585a58bbe51aae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7d8f3d4e9a23181f4a59f38d65a7820",
"_score": 1100.0,
"_source": {
"id": "b7d8f3d4e9a23181f4a59f38d65a7820",
"autoIncrement": 128959.0
},
"fields": {
"displayGroup": [
"9ee4607636a7cc55db2ae8ed986e51a6"
]
},
"sort": [
0,
1100.0,
0,
128959,
"b7d8f3d4e9a23181f4a59f38d65a7820"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "53643588aaaa668d45f6bfa51a1f045f",
"_score": 1100.0,
"_source": {
"id": "53643588aaaa668d45f6bfa51a1f045f",
"autoIncrement": 127400.0
},
"fields": {
"displayGroup": [
"b1c0a22faf08ef078aabf1aa2673895f"
]
},
"sort": [
0,
1100.0,
0,
127400,
"53643588aaaa668d45f6bfa51a1f045f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ae117a68fdb927a6788ad6c6d48c3615",
"_score": 1100.0,
"_source": {
"id": "ae117a68fdb927a6788ad6c6d48c3615",
"autoIncrement": 93193.0
},
"fields": {
"displayGroup": [
"0e9f51778049295c50fc0a8139145a09"
]
},
"sort": [
0,
1100.0,
0,
93193,
"ae117a68fdb927a6788ad6c6d48c3615"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff6998f123cc05af7795dc29769caea1",
"_score": 1100.0,
"_source": {
"id": "ff6998f123cc05af7795dc29769caea1",
"autoIncrement": 93191.0
},
"fields": {
"displayGroup": [
"8e56951ed9d6b134b697b850d79f4c5e"
]
},
"sort": [
0,
1100.0,
0,
93191,
"ff6998f123cc05af7795dc29769caea1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "03162071255f11733e5aa151473ffd24",
"_score": 1100.0,
"_source": {
"id": "03162071255f11733e5aa151473ffd24",
"autoIncrement": 93189.0
},
"fields": {
"displayGroup": [
"f10b8a8589edb8a37143f773ecee64bc"
]
},
"sort": [
0,
1100.0,
0,
93189,
"03162071255f11733e5aa151473ffd24"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "58107e60e25b7cdfc4f8e1e7f25a1cea",
"_score": 1100.0,
"_source": {
"id": "58107e60e25b7cdfc4f8e1e7f25a1cea",
"autoIncrement": 93188.0
},
"fields": {
"displayGroup": [
"974e2bc2e3187631b15e95fc1f78f425"
]
},
"sort": [
0,
1100.0,
0,
93188,
"58107e60e25b7cdfc4f8e1e7f25a1cea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "41acc683a7a4fed1a9a9966bf4daa5a6",
"_score": 1100.0,
"_source": {
"id": "41acc683a7a4fed1a9a9966bf4daa5a6",
"autoIncrement": 93187.0
},
"fields": {
"displayGroup": [
"dba6b3faa7b08141fad3768fe3fee806"
]
},
"sort": [
0,
1100.0,
0,
93187,
"41acc683a7a4fed1a9a9966bf4daa5a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0af4c99b8b4f0aa4644dadb9600b8e98",
"_score": 1100.0,
"_source": {
"id": "0af4c99b8b4f0aa4644dadb9600b8e98",
"autoIncrement": 93186.0
},
"fields": {
"displayGroup": [
"ce9667e2abff69b67e89c4cd04f6c79e"
]
},
"sort": [
0,
1100.0,
0,
93186,
"0af4c99b8b4f0aa4644dadb9600b8e98"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c289ee101299e5ed3b546479a41c410a",
"_score": 1100.0,
"_source": {
"id": "c289ee101299e5ed3b546479a41c410a",
"autoIncrement": 93184.0
},
"fields": {
"displayGroup": [
"fa6890d74d09e57744e01707c64b1075"
]
},
"sort": [
0,
1100.0,
0,
93184,
"c289ee101299e5ed3b546479a41c410a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "562a0e15f9fe4dd976419aaf770a8053",
"_score": 1100.0,
"_source": {
"id": "562a0e15f9fe4dd976419aaf770a8053",
"autoIncrement": 93183.0
},
"fields": {
"displayGroup": [
"55e3495a899e5426cfe0d30f37c2b22f"
]
},
"sort": [
0,
1100.0,
0,
93183,
"562a0e15f9fe4dd976419aaf770a8053"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b408f91720c18b67c26279d9b54091f6",
"_score": 1100.0,
"_source": {
"id": "b408f91720c18b67c26279d9b54091f6",
"autoIncrement": 93182.0
},
"fields": {
"displayGroup": [
"d9811c63b8a6e812e64c2c273d0ea995"
]
},
"sort": [
0,
1100.0,
0,
93182,
"b408f91720c18b67c26279d9b54091f6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1b19cb2e2b910c6896b951fc41ef7207",
"_score": 1100.0,
"_source": {
"id": "1b19cb2e2b910c6896b951fc41ef7207",
"autoIncrement": 93181.0
},
"fields": {
"displayGroup": [
"e74d9c4cee896cc438607a10f67a076f"
]
},
"sort": [
0,
1100.0,
0,
93181,
"1b19cb2e2b910c6896b951fc41ef7207"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "746b5b0df7805f5bcea9ace7e1ce247d",
"_score": 1100.0,
"_source": {
"id": "746b5b0df7805f5bcea9ace7e1ce247d",
"autoIncrement": 93179.0
},
"fields": {
"displayGroup": [
"3b729bfe1137d00144cbaee2a154f94a"
]
},
"sort": [
0,
1100.0,
0,
93179,
"746b5b0df7805f5bcea9ace7e1ce247d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d7337ca385bf2eb015af9b8533d8b4cb",
"_score": 1100.0,
"_source": {
"id": "d7337ca385bf2eb015af9b8533d8b4cb",
"autoIncrement": 93178.0
},
"fields": {
"displayGroup": [
"2e0c4491ed8d9c39a32876b9856879f5"
]
},
"sort": [
0,
1100.0,
0,
93178,
"d7337ca385bf2eb015af9b8533d8b4cb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0b4b7931e5b487e1a9174c6f481d8d09",
"_score": 1100.0,
"_source": {
"id": "0b4b7931e5b487e1a9174c6f481d8d09",
"autoIncrement": 93176.0
},
"fields": {
"displayGroup": [
"de6bcaa0323cb0349c4a910870274685"
]
},
"sort": [
0,
1100.0,
0,
93176,
"0b4b7931e5b487e1a9174c6f481d8d09"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6af0adfa9daad9ccd1ac0a9c46450784",
"_score": 1100.0,
"_source": {
"id": "6af0adfa9daad9ccd1ac0a9c46450784",
"autoIncrement": 93175.0
},
"fields": {
"displayGroup": [
"aec94c14c3c1fb0fd6673d834de001a6"
]
},
"sort": [
0,
1100.0,
0,
93175,
"6af0adfa9daad9ccd1ac0a9c46450784"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3b18a41cede5e178b2c8a2e919cbf732",
"_score": 1100.0,
"_source": {
"id": "3b18a41cede5e178b2c8a2e919cbf732",
"autoIncrement": 93174.0
},
"fields": {
"displayGroup": [
"ec5b42d7d2d5fd720668983022b34280"
]
},
"sort": [
0,
1100.0,
0,
93174,
"3b18a41cede5e178b2c8a2e919cbf732"
]
}
]
},
"aggregations": {
"total-count": {
"value": 33
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.31 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":"998bbb1a17f3c5e003f1672843efb68c"}},{"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-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": "998bbb1a17f3c5e003f1672843efb68c"
}
},
{
"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-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": 33,
"min": 1830.0,
"max": 14799.0,
"avg": 5331.848484848485,
"sum": 175951.0
},
"rating-exists": {
"doc_count": 33,
"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": {
"buckets": []
},
"bool-reduced": {
"doc_count": 11,
"bool-reduced": {
"value": 11
}
},
"width": {
"count": 33,
"min": 1000.0,
"max": 1000.0,
"avg": 1000.0,
"sum": 33000.0
},
"width-stats": {
"doc_count": 33,
"width-stats": {
"count": 33,
"min": 1000.0,
"max": 1000.0,
"avg": 1000.0,
"sum": 33000.0
}
},
"height": {
"count": 33,
"min": 1000.0,
"max": 1000.0,
"avg": 1000.0,
"sum": 33000.0
},
"height-stats": {
"doc_count": 33,
"height-stats": {
"count": 33,
"min": 1000.0,
"max": 1000.0,
"avg": 1000.0,
"sum": 33000.0
}
},
"tiefe": {
"count": 33,
"min": 1000.0,
"max": 6000.0,
"avg": 3333.3333333333335,
"sum": 110000.0
},
"range-anzahlEbenen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-fachbodenmaterial": {
"buckets": []
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 33
}
]
},
"range-laengeQuertraverse": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-fachbreite": {
"after_key": {
"multi-fachbreite.sorting": "99 mm",
"multi-fachbreite.key": "99 mm"
},
"buckets": [
{
"key": {
"multi-fachbreite.sorting": "110 mm",
"multi-fachbreite.key": "110 mm"
},
"doc_count": 3
},
{
"key": {
"multi-fachbreite.sorting": "112 mm",
"multi-fachbreite.key": "112 mm"
},
"doc_count": 3
},
{
"key": {
"multi-fachbreite.sorting": "150 mm",
"multi-fachbreite.key": "150 mm"
},
"doc_count": 6
},
{
"key": {
"multi-fachbreite.sorting": "180 mm",
"multi-fachbreite.key": "180 mm"
},
"doc_count": 6
},
{
"key": {
"multi-fachbreite.sorting": "225 mm",
"multi-fachbreite.key": "225 mm"
},
"doc_count": 9
},
{
"key": {
"multi-fachbreite.sorting": "304 mm",
"multi-fachbreite.key": "304 mm"
},
"doc_count": 3
},
{
"key": {
"multi-fachbreite.sorting": "99 mm",
"multi-fachbreite.key": "99 mm"
},
"doc_count": 3
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL 7016 Anthrazitgrau",
"multi-farbe.key": "RAL 7016 Anthrazitgrau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7016 Anthrazitgrau",
"multi-farbe.key": "RAL 7016 Anthrazitgrau"
},
"doc_count": 33
}
]
},
"range-feldlast": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-oberflaeche": {
"after_key": {
"multi-oberflaeche.sorting": "pulverbeschichtet",
"multi-oberflaeche.key": "pulverbeschichtet"
},
"buckets": [
{
"key": {
"multi-oberflaeche.sorting": "pulverbeschichtet",
"multi-oberflaeche.key": "pulverbeschichtet"
},
"doc_count": 33
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "90 kg",
"multi-fachlast.key": "90 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "110 kg",
"multi-fachlast.key": "110 kg"
},
"doc_count": 3
},
{
"key": {
"multi-fachlast.sorting": "137 kg",
"multi-fachlast.key": "137 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "150 kg",
"multi-fachlast.key": "150 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "20 kg",
"multi-fachlast.key": "20 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "200 kg",
"multi-fachlast.key": "200 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "225 kg",
"multi-fachlast.key": "225 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "250 kg",
"multi-fachlast.key": "250 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "300 kg",
"multi-fachlast.key": "300 kg"
},
"doc_count": 3
},
{
"key": {
"multi-fachlast.sorting": "320 kg",
"multi-fachlast.key": "320 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "35 kg",
"multi-fachlast.key": "35 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "350 kg",
"multi-fachlast.key": "350 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "40 kg",
"multi-fachlast.key": "40 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "420 kg",
"multi-fachlast.key": "420 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "520 kg",
"multi-fachlast.key": "520 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "55 kg",
"multi-fachlast.key": "55 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "60 kg",
"multi-fachlast.key": "60 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "640 kg",
"multi-fachlast.key": "640 kg"
},
"doc_count": 3
},
{
"key": {
"multi-fachlast.sorting": "70 kg",
"multi-fachlast.key": "70 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "700 kg",
"multi-fachlast.key": "700 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "75 kg",
"multi-fachlast.key": "75 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "90 kg",
"multi-fachlast.key": "90 kg"
},
"doc_count": 2
}
]
},
"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": []
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|