| 1 |
15.44 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":"612bc03e86e138762cb4261eff31ff76"}},{"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": 61,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_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": "701234a82614ef2875b9b1dc716d0ed7",
"_score": 1100.0,
"_source": {
"id": "701234a82614ef2875b9b1dc716d0ed7",
"autoIncrement": 126780.0
},
"fields": {
"displayGroup": [
"c8c66a26047bd81b40dab7f24d78a74d"
]
},
"sort": [
0,
1100.0,
0,
126780,
"701234a82614ef2875b9b1dc716d0ed7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a12d823e66fc13821f8798a0236c3c4d",
"_score": 1100.0,
"_source": {
"id": "a12d823e66fc13821f8798a0236c3c4d",
"autoIncrement": 125522.0
},
"fields": {
"displayGroup": [
"664d2f7f2d0b2b8c89f812d948a203a3"
]
},
"sort": [
0,
1100.0,
0,
125522,
"a12d823e66fc13821f8798a0236c3c4d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "850ad2f1dff148fd1cf827e8e0119e5d",
"_score": 1100.0,
"_source": {
"id": "850ad2f1dff148fd1cf827e8e0119e5d",
"autoIncrement": 125521.0
},
"fields": {
"displayGroup": [
"c4f694c197af7a4dee8c9e45e5098e5f"
]
},
"sort": [
0,
1100.0,
0,
125521,
"850ad2f1dff148fd1cf827e8e0119e5d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3728d762eef9bcb652a84c279df7704e",
"_score": 1100.0,
"_source": {
"id": "3728d762eef9bcb652a84c279df7704e",
"autoIncrement": 108250.0
},
"fields": {
"displayGroup": [
"083d484aa857c0ec8215969ea23845a1"
]
},
"sort": [
0,
1100.0,
0,
108250,
"3728d762eef9bcb652a84c279df7704e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "56ec066f5669ab193757460e19e97c35",
"_score": 1100.0,
"_source": {
"id": "56ec066f5669ab193757460e19e97c35",
"autoIncrement": 108249.0
},
"fields": {
"displayGroup": [
"4403546c1524980e44a910474e8a305c"
]
},
"sort": [
0,
1100.0,
0,
108249,
"56ec066f5669ab193757460e19e97c35"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3708bef20f6c51160370869af307a342",
"_score": 1100.0,
"_source": {
"id": "3708bef20f6c51160370869af307a342",
"autoIncrement": 108248.0
},
"fields": {
"displayGroup": [
"92ec3d89b2c90e644cf80d7bb144de54"
]
},
"sort": [
0,
1100.0,
0,
108248,
"3708bef20f6c51160370869af307a342"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c7dcabdba20db9c37589f6992deee8d9",
"_score": 1100.0,
"_source": {
"id": "c7dcabdba20db9c37589f6992deee8d9",
"autoIncrement": 108247.0
},
"fields": {
"displayGroup": [
"9f99d8f251878202ccd47ce97da9a739"
]
},
"sort": [
0,
1100.0,
0,
108247,
"c7dcabdba20db9c37589f6992deee8d9"
]
},
{
"_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"
]
}
]
},
"aggregations": {
"total-count": {
"value": 61
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.41 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":"612bc03e86e138762cb4261eff31ff76"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"multi-anlieferung":{"composite":{"sources":[{"multi-anlieferung.sorting":{"terms":{"field":"attribute_anlieferung","order":"ASC"}}},{"multi-anlieferung.key":{"terms":{"field":"attribute_anlieferung"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"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": "612bc03e86e138762cb4261eff31ff76"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"multi-anlieferung": {
"composite": {
"sources": [
{
"multi-anlieferung.sorting": {
"terms": {
"field": "attribute_anlieferung",
"order": "ASC"
}
}
},
{
"multi-anlieferung.key": {
"terms": {
"field": "attribute_anlieferung"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"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": 61,
"min": 215.0,
"max": 14799.0,
"avg": 3487.9180327868853,
"sum": 212763.0
},
"rating-exists": {
"doc_count": 61,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 7
}
]
},
"bool-reduced": {
"doc_count": 14,
"bool-reduced": {
"value": 14
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 2755.0,
"multi-width.key": 2755.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 400.0,
"multi-width.key": 400.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 440.0,
"multi-width.key": 440.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 480.0,
"multi-width.key": 480.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 560.0,
"multi-width.key": 560.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 920.0,
"multi-width.key": 920.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 33
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1800.0,
"multi-width.key": 1800.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 2755.0,
"multi-width.key": 2755.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3500.0,
"multi-height.key": 3500.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 37
},
{
"key": {
"multi-height.sorting": 1040.0,
"multi-height.key": 1040.0
},
"doc_count": 6
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 2285.0,
"multi-height.key": 2285.0
},
"doc_count": 8
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 3500.0,
"multi-height.key": 3500.0
},
"doc_count": 4
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 13
},
{
"key": {
"multi-tiefe.sorting": 1100.0,
"multi-tiefe.key": 1100.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 1335.0,
"multi-tiefe.key": 1335.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 1600.0,
"multi-tiefe.key": 1600.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 1800.0,
"multi-tiefe.key": 1800.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 2030.0,
"multi-tiefe.key": 2030.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 2300.0,
"multi-tiefe.key": 2300.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 2500.0,
"multi-tiefe.key": 2500.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 2800.0,
"multi-tiefe.key": 2800.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 3000.0,
"multi-tiefe.key": 3000.0
},
"doc_count": 13
},
{
"key": {
"multi-tiefe.sorting": 4000.0,
"multi-tiefe.key": 4000.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 5000.0,
"multi-tiefe.key": 5000.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"doc_count": 11
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 7
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Wabenregale",
"multi-typModel.key": "Wabenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Plattenregale",
"multi-typModel.key": "Plattenregale"
},
"doc_count": 21
},
{
"key": {
"multi-typModel.sorting": "Vertikalregale",
"multi-typModel.key": "Vertikalregale"
},
"doc_count": 7
},
{
"key": {
"multi-typModel.sorting": "Wabenregale",
"multi-typModel.key": "Wabenregale"
},
"doc_count": 33
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 10
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 50
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 1
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "90 kg",
"multi-fachlast.key": "90 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "1000 kg",
"multi-fachlast.key": "1000 kg"
},
"doc_count": 6
},
{
"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": 5
},
{
"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": "750 kg",
"multi-fachlast.key": "750 kg"
},
"doc_count": 1
},
{
"key": {
"multi-fachlast.sorting": "800 kg",
"multi-fachlast.key": "800 kg"
},
"doc_count": 6
},
{
"key": {
"multi-fachlast.sorting": "90 kg",
"multi-fachlast.key": "90 kg"
},
"doc_count": 2
}
]
},
"multi-anlieferung": {
"after_key": {
"multi-anlieferung.sorting": "zerlegt",
"multi-anlieferung.key": "zerlegt"
},
"buckets": [
{
"key": {
"multi-anlieferung.sorting": "montiert",
"multi-anlieferung.key": "montiert"
},
"doc_count": 33
},
{
"key": {
"multi-anlieferung.sorting": "teilmontiert",
"multi-anlieferung.key": "teilmontiert"
},
"doc_count": 7
},
{
"key": {
"multi-anlieferung.sorting": "zerlegt",
"multi-anlieferung.key": "zerlegt"
},
"doc_count": 21
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 3000 feuerrot",
"multi-farbe.key": "RAL 3000 feuerrot"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "RAL 5019 capriblau",
"multi-farbe.key": "RAL 5019 capriblau"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "RAL 7016 Anthrazitgrau",
"multi-farbe.key": "RAL 7016 Anthrazitgrau"
},
"doc_count": 33
},
{
"key": {
"multi-farbe.sorting": "RAL 9010 reinwei\u00df",
"multi-farbe.key": "RAL 9010 reinwei\u00df"
},
"doc_count": 8
},
{
"key": {
"multi-farbe.sorting": "orange\/silber",
"multi-farbe.key": "orange\/silber"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 7
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 7
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|