1 |
2.81 ms |
Request:
{"index":"sw_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"250c23c94a704f8ba1b4819c38901688"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"7bccd4b2059f4c2fa78834b7a34fe989"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"sort":[{"_script":{"type":"number","script":{"source":"def languages = params['languages'];\ndef suffix = params.containsKey('suffix') ? '.' + params['suffix'] : '';\n\nfor (int i = 0; i < languages.length; i++) {\n def field_name = params['field'] + '.' + languages[i] + suffix;\n\n if (doc[field_name].size() > 0 && doc[field_name].value != null && doc[field_name].value.toString().length() > 0) {\n def fieldValue = doc[field_name].value;\n\n return fieldValue;\n }\n}\n\nif (params['order'] == 'asc') {\n return Double.MAX_VALUE;\n}\n\nreturn Double.MIN_VALUE;\n","lang":"painless","params":{"field":"customFields","languages":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"suffix":"custom_product_rosland_set_year","order":"desc"}},"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":36,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 14,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw_product_1717666750",
"_id": "040c21c0e1844735862eec374cfeeadf",
"_score": null,
"_source": {
"id": "040c21c0e1844735862eec374cfeeadf",
"autoIncrement": 1927.0
},
"fields": {
"displayGroup": [
"60e078885c6fac2814a78096af9e33d7"
]
},
"sort": [
2017.0,
"040c21c0e1844735862eec374cfeeadf"
]
},
{
"_index": "sw_product_1717666750",
"_id": "24d9675fd3854ea09d6623bf8fa130f3",
"_score": null,
"_source": {
"id": "24d9675fd3854ea09d6623bf8fa130f3",
"autoIncrement": 1932.0
},
"fields": {
"displayGroup": [
"81c83212740c9837fadf3432c4895083"
]
},
"sort": [
2017.0,
"24d9675fd3854ea09d6623bf8fa130f3"
]
},
{
"_index": "sw_product_1717666750",
"_id": "25b0b9782b154960823fdb3bf0be479b",
"_score": null,
"_source": {
"id": "25b0b9782b154960823fdb3bf0be479b",
"autoIncrement": 1925.0
},
"fields": {
"displayGroup": [
"a09be3157dcaed7cf97d738d2abcecbf"
]
},
"sort": [
2017.0,
"25b0b9782b154960823fdb3bf0be479b"
]
},
{
"_index": "sw_product_1717666750",
"_id": "4173b5e59316494aa267c4c61b0f5c57",
"_score": null,
"_source": {
"id": "4173b5e59316494aa267c4c61b0f5c57",
"autoIncrement": 1924.0
},
"fields": {
"displayGroup": [
"d55562b557409f73da093c3809417de7"
]
},
"sort": [
2017.0,
"4173b5e59316494aa267c4c61b0f5c57"
]
},
{
"_index": "sw_product_1717666750",
"_id": "4b2af0bed892411d88a5d93d790b45ef",
"_score": null,
"_source": {
"id": "4b2af0bed892411d88a5d93d790b45ef",
"autoIncrement": 3148.0
},
"fields": {
"displayGroup": [
"22d2b29034e130ff4843ca9bb715f084"
]
},
"sort": [
2017.0,
"4b2af0bed892411d88a5d93d790b45ef"
]
},
{
"_index": "sw_product_1717666750",
"_id": "5769fccad29e48c3953a7c67b9757e60",
"_score": null,
"_source": {
"id": "5769fccad29e48c3953a7c67b9757e60",
"autoIncrement": 3147.0
},
"fields": {
"displayGroup": [
"153cfc5fcdae89d90a756dbb7e382a04"
]
},
"sort": [
2017.0,
"5769fccad29e48c3953a7c67b9757e60"
]
},
{
"_index": "sw_product_1717666750",
"_id": "6665c07748be4d8ba3e52e1d8f1ef8d4",
"_score": null,
"_source": {
"id": "6665c07748be4d8ba3e52e1d8f1ef8d4",
"autoIncrement": 3533.0
},
"fields": {
"displayGroup": [
"85f0ec650af74ef56c961f37988e18e3"
]
},
"sort": [
2017.0,
"6665c07748be4d8ba3e52e1d8f1ef8d4"
]
},
{
"_index": "sw_product_1717666750",
"_id": "7a53cec479674e3b974e64d5260dcf46",
"_score": null,
"_source": {
"id": "7a53cec479674e3b974e64d5260dcf46",
"autoIncrement": 1930.0
},
"fields": {
"displayGroup": [
"a541d2920202e21b1dca2f86e7074b5e"
]
},
"sort": [
2017.0,
"7a53cec479674e3b974e64d5260dcf46"
]
},
{
"_index": "sw_product_1717666750",
"_id": "7d3317ff65a746279fc28fd378551c3f",
"_score": null,
"_source": {
"id": "7d3317ff65a746279fc28fd378551c3f",
"autoIncrement": 1931.0
},
"fields": {
"displayGroup": [
"c55a055a4ee57ad2c8763bbe742ef934"
]
},
"sort": [
2017.0,
"7d3317ff65a746279fc28fd378551c3f"
]
},
{
"_index": "sw_product_1717666750",
"_id": "8038a853fd5442a5893b31f7f78b08df",
"_score": null,
"_source": {
"id": "8038a853fd5442a5893b31f7f78b08df",
"autoIncrement": 1928.0
},
"fields": {
"displayGroup": [
"6435e26c3465727751c1fa2834f7a00e"
]
},
"sort": [
2017.0,
"8038a853fd5442a5893b31f7f78b08df"
]
},
{
"_index": "sw_product_1717666750",
"_id": "ab4a0cca1e9c45fabdc8f1fd29e89678",
"_score": null,
"_source": {
"id": "ab4a0cca1e9c45fabdc8f1fd29e89678",
"autoIncrement": 1926.0
},
"fields": {
"displayGroup": [
"5520d85da24d26bc69cdf82bba436b68"
]
},
"sort": [
2017.0,
"ab4a0cca1e9c45fabdc8f1fd29e89678"
]
},
{
"_index": "sw_product_1717666750",
"_id": "c565c41b09894f07a450ee621b196382",
"_score": null,
"_source": {
"id": "c565c41b09894f07a450ee621b196382",
"autoIncrement": 903.0
},
"fields": {
"displayGroup": [
"b23be52ccf5040ba95374d382217c09a"
]
},
"sort": [
2017.0,
"c565c41b09894f07a450ee621b196382"
]
},
{
"_index": "sw_product_1717666750",
"_id": "ebd04ef3983145758f738fe69679d500",
"_score": null,
"_source": {
"id": "ebd04ef3983145758f738fe69679d500",
"autoIncrement": 1923.0
},
"fields": {
"displayGroup": [
"98d26dfc036974a68d9d3bf2e9de7d5b"
]
},
"sort": [
2017.0,
"ebd04ef3983145758f738fe69679d500"
]
},
{
"_index": "sw_product_1717666750",
"_id": "faa8104797f44cb5a2f2c93cf8c59afc",
"_score": null,
"_source": {
"id": "faa8104797f44cb5a2f2c93cf8c59afc",
"autoIncrement": 1929.0
},
"fields": {
"displayGroup": [
"e092013222b60c83e59ccf1ddfe3fdbb"
]
},
"sort": [
2017.0,
"faa8104797f44cb5a2f2c93cf8c59afc"
]
}
]
},
"aggregations": {
"total-count": {
"value": 14
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
2.65 ms |
Request:
{"index":"sw_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"250c23c94a704f8ba1b4819c38901688"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"7bccd4b2059f4c2fa78834b7a34fe989"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"aggregations":{"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"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_rule64bf19224e314563aba24460dda765f8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule89d3fe06bd7c478194fe9179a9602df5_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruled980a6dfc7774cd192e0b1a183764274_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01961afbc995737796b164a7b5355b5d_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01961afbca2673cf9fb2d67da0cd8a62_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule6235b68395cd475f90278d41d7b1b36c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruleac5af03b5965434681e7c4cb42720d2b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rulecc1de6f5416545d3a68a00f78e8f20f3_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","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}}}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"rating-exists": {
"doc_count": 14,
"rating": {
"value": 0.0
}
},
"price": {
"count": 14,
"min": 8.0,
"max": 3087.74,
"avg": 261.3385714285714,
"sum": 3658.74
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"properties": {
"doc_count": 230,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "0ad2db72f8c446a29c956ed6e9f78fb4",
"doc_count": 14
},
{
"key": "45018ee86cc84c47b8d18583215e11fb",
"doc_count": 14
},
{
"key": "b1db92116aaf46d5a308b7ad5f134d9d",
"doc_count": 14
},
{
"key": "cec1efc6548f4599930d3a4e6db53689",
"doc_count": 14
},
{
"key": "d3cfb18b53ee4a4486a2f4d64f53934f",
"doc_count": 14
},
{
"key": "de88ad12fea44d74b9c2a1f1edf7ecdf",
"doc_count": 14
},
{
"key": "70d623b6cfc0418c841d5717feb365d3",
"doc_count": 13
},
{
"key": "c00d09ec51844aefa2781fcc00839644",
"doc_count": 9
},
{
"key": "b81318b1758e42bc8be1559a7f6df0bc",
"doc_count": 8
},
{
"key": "004c9f1122be4d3db1dadecc53a44cdf",
"doc_count": 5
},
{
"key": "50bede51bbaa4f4aba7003a45cf998b3",
"doc_count": 5
},
{
"key": "6f92af8d0f0a4ae99239c1bd9f68d3d3",
"doc_count": 5
},
{
"key": "c82b182269744cecbfea2fc49d9b6766",
"doc_count": 5
},
{
"key": "d0c07ddcae6a4425b96e363887660b9f",
"doc_count": 5
},
{
"key": "d3a2f712b61249b2888f1f071396654b",
"doc_count": 5
},
{
"key": "f3addfa0aa8f492b93ef4d41f76ff1fd",
"doc_count": 5
},
{
"key": "256aa072d598469cbe2a99d63859b36e",
"doc_count": 4
},
{
"key": "5ef30141011b40d7863ad6aae9217493",
"doc_count": 4
},
{
"key": "14b9d6582da24b8da3125aa5edaece5f",
"doc_count": 3
},
{
"key": "18a60018f5894416a3ba174954b557c8",
"doc_count": 3
},
{
"key": "1f819bce5fc84bcea16f7793e2ad7466",
"doc_count": 3
},
{
"key": "276cdd68b28844569066cf000ab6cb31",
"doc_count": 3
},
{
"key": "54d95eb6d8e6492aa1ffeb60b06040d3",
"doc_count": 3
},
{
"key": "90fa3a7cc950451b91847fc8d1faa77f",
"doc_count": 3
},
{
"key": "d5a5144d153f4755a8ee22bd046c174e",
"doc_count": 3
},
{
"key": "e577924c14df48179d45585b28aacca1",
"doc_count": 3
},
{
"key": "4d0caa14da8741f3b3809e6dbda669ab",
"doc_count": 2
},
{
"key": "a9705b0538cb42a3be5018cf5701955d",
"doc_count": 2
},
{
"key": "c057aaf844b84af9a250efc7be0def2c",
"doc_count": 2
},
{
"key": "fb2fc0a14b79451dac8829bfbac80116",
"doc_count": 2
},
{
"key": "2ba9657c9c574e9aa85f70814078ad7e",
"doc_count": 1
},
{
"key": "2e4f79e00ecd48dfb1212bfa6adf839f",
"doc_count": 1
},
{
"key": "39556c542db348c6ac22908d604d0d50",
"doc_count": 1
},
{
"key": "3f06559cf4884d74a5afdeae798ab6e9",
"doc_count": 1
},
{
"key": "408da5c17c904ca4b977a05d69b24242",
"doc_count": 1
},
{
"key": "56a1d6dfb7544a49b5ea6fea8e824484",
"doc_count": 1
},
{
"key": "5c6d6bd13a8046ff9c42616458a38488",
"doc_count": 1
},
{
"key": "654db2468a5f44b49b398a893a358d22",
"doc_count": 1
},
{
"key": "667d1d0e73a34b92830667eb344df60d",
"doc_count": 1
},
{
"key": "79709bed515d4a1593cdc09df948021e",
"doc_count": 1
},
{
"key": "7acdd820ece049b888fbee329af0cd5f",
"doc_count": 1
},
{
"key": "7af1972af00d450889a1a91efaecec7d",
"doc_count": 1
},
{
"key": "7cfebafe4ec349c6a34d5055ebb26ad9",
"doc_count": 1
},
{
"key": "815603eeacfd418fb360ad2e9469c0b1",
"doc_count": 1
},
{
"key": "85007d00dbb3447c90183857550eb42a",
"doc_count": 1
},
{
"key": "8a6d35f366a344ee8785091cca048c00",
"doc_count": 1
},
{
"key": "8e630823e6b940e88db3ec45984e9c63",
"doc_count": 1
},
{
"key": "94dd585006d04491a0204de65ff0b85e",
"doc_count": 1
},
{
"key": "950074db1e3749c6a39dbce3b25beda3",
"doc_count": 1
},
{
"key": "9f63919f237d4a99826fb4355de59356",
"doc_count": 1
},
{
"key": "ad799a5d08034eb29cc48599b830b580",
"doc_count": 1
},
{
"key": "af4493ae34e84428bc07df5696f8f180",
"doc_count": 1
},
{
"key": "b3b5e9838a334178abcab9f217af98e2",
"doc_count": 1
},
{
"key": "b57d1d0eb833459bbda07a3adca6714c",
"doc_count": 1
},
{
"key": "b5f152dffd5d448c8f5701dbe139b710",
"doc_count": 1
},
{
"key": "b6c9b40b7de442d28b2c97790830e1e5",
"doc_count": 1
},
{
"key": "b791b38a3b464e77ba7ac233fc68303f",
"doc_count": 1
},
{
"key": "b8dd631079d34d42b559a3eb42f6cfa6",
"doc_count": 1
},
{
"key": "bb62085cec734c48a25a9f07470cf013",
"doc_count": 1
},
{
"key": "bcfd8dff179149088e720a4ff4527e56",
"doc_count": 1
},
{
"key": "bda6fb3980a84a4197e33a8c6e3d90bf",
"doc_count": 1
},
{
"key": "c1d70719badf4382b9dabd1bb5a380bf",
"doc_count": 1
},
{
"key": "cb3b1190ca3e474f8fc1ac4e98b380c4",
"doc_count": 1
},
{
"key": "cb56760a1f8742cab6795e698673549c",
"doc_count": 1
},
{
"key": "d7fbeb9111714623878116b0e0dda717",
"doc_count": 1
},
{
"key": "da73ead1b1964a929f9369fb17e21c3b",
"doc_count": 1
},
{
"key": "dbc9df5e0bfe45c09a795a0a77f597e1",
"doc_count": 1
},
{
"key": "eac8c8144d2e468883704735d116f85f",
"doc_count": 1
},
{
"key": "eacf349b35b7494c8bbf7cb92ee7e3d6",
"doc_count": 1
},
{
"key": "ed25d0f13c934600bbc33b8db2b7962d",
"doc_count": 1
},
{
"key": "f06e9cb8ae034829b52292d1dc937b5f",
"doc_count": 1
}
]
}
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "0c6346a583ce4d0c93a8911b89371b9a",
"doc_count": 14
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|