1 |
2.83 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":"4c1c83b3b5444daba39fe850f0826d34"}}}},{"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": "30206f58c2ae4700a2f25f86d58d430e",
"_score": null,
"_source": {
"id": "30206f58c2ae4700a2f25f86d58d430e",
"autoIncrement": 2002.0
},
"fields": {
"displayGroup": [
"6b03df44df8231ca8b76ceb06cbd58fa"
]
},
"sort": [
2012.0,
"30206f58c2ae4700a2f25f86d58d430e"
]
},
{
"_index": "sw_product_1717666750",
"_id": "316abb79e874445d9238577559a1f297",
"_score": null,
"_source": {
"id": "316abb79e874445d9238577559a1f297",
"autoIncrement": 3158.0
},
"fields": {
"displayGroup": [
"26a0674b6fa1b59517e72c273c0dfd98"
]
},
"sort": [
2012.0,
"316abb79e874445d9238577559a1f297"
]
},
{
"_index": "sw_product_1717666750",
"_id": "33ddaf04f5e14d06a68795398f9924a6",
"_score": null,
"_source": {
"id": "33ddaf04f5e14d06a68795398f9924a6",
"autoIncrement": 1968.0
},
"fields": {
"displayGroup": [
"0edf713df4d93814deae6191bf07e4fd"
]
},
"sort": [
2012.0,
"33ddaf04f5e14d06a68795398f9924a6"
]
},
{
"_index": "sw_product_1717666750",
"_id": "3f9136eecc9247929a792648c05ea4fc",
"_score": null,
"_source": {
"id": "3f9136eecc9247929a792648c05ea4fc",
"autoIncrement": 3156.0
},
"fields": {
"displayGroup": [
"3a9444a2eb3933c40fd15ffd1e6770da"
]
},
"sort": [
2012.0,
"3f9136eecc9247929a792648c05ea4fc"
]
},
{
"_index": "sw_product_1717666750",
"_id": "7fe02c87b8b04cb4a14a5d9796d9bd7b",
"_score": null,
"_source": {
"id": "7fe02c87b8b04cb4a14a5d9796d9bd7b",
"autoIncrement": 1964.0
},
"fields": {
"displayGroup": [
"e417bab500a976b4570bb2dc315c901a"
]
},
"sort": [
2012.0,
"7fe02c87b8b04cb4a14a5d9796d9bd7b"
]
},
{
"_index": "sw_product_1717666750",
"_id": "84a72f49ae5a46d4b089477fb3ef29f1",
"_score": null,
"_source": {
"id": "84a72f49ae5a46d4b089477fb3ef29f1",
"autoIncrement": 1970.0
},
"fields": {
"displayGroup": [
"c1ece3ecf1283774bb83249ce7275bda"
]
},
"sort": [
2012.0,
"84a72f49ae5a46d4b089477fb3ef29f1"
]
},
{
"_index": "sw_product_1717666750",
"_id": "8703b2e0a6274b7e9eeb522b30cfadcb",
"_score": null,
"_source": {
"id": "8703b2e0a6274b7e9eeb522b30cfadcb",
"autoIncrement": 3157.0
},
"fields": {
"displayGroup": [
"230325002d5c9cec9aef5e0faecea09e"
]
},
"sort": [
2012.0,
"8703b2e0a6274b7e9eeb522b30cfadcb"
]
},
{
"_index": "sw_product_1717666750",
"_id": "94d8768b6bbd40bba7dfdcde6061fafd",
"_score": null,
"_source": {
"id": "94d8768b6bbd40bba7dfdcde6061fafd",
"autoIncrement": 2014.0
},
"fields": {
"displayGroup": [
"5e6cc7b95760af2c2a1c6a384cc2bbc3"
]
},
"sort": [
2012.0,
"94d8768b6bbd40bba7dfdcde6061fafd"
]
},
{
"_index": "sw_product_1717666750",
"_id": "b44a436c584942318c84aabf5517c074",
"_score": null,
"_source": {
"id": "b44a436c584942318c84aabf5517c074",
"autoIncrement": 1969.0
},
"fields": {
"displayGroup": [
"11f5e0112ab2b34805210c8578c837e4"
]
},
"sort": [
2012.0,
"b44a436c584942318c84aabf5517c074"
]
},
{
"_index": "sw_product_1717666750",
"_id": "b6d7069b956f4a9583d89294e8f7dd22",
"_score": null,
"_source": {
"id": "b6d7069b956f4a9583d89294e8f7dd22",
"autoIncrement": 1965.0
},
"fields": {
"displayGroup": [
"a5cc2141f26d7d38d61138a61da868b7"
]
},
"sort": [
2012.0,
"b6d7069b956f4a9583d89294e8f7dd22"
]
},
{
"_index": "sw_product_1717666750",
"_id": "c910beecbd7d4de4aeebc27f4ef3c47d",
"_score": null,
"_source": {
"id": "c910beecbd7d4de4aeebc27f4ef3c47d",
"autoIncrement": 1966.0
},
"fields": {
"displayGroup": [
"58ad6b41ce1c0e74e8a1c59c301f7c0a"
]
},
"sort": [
2012.0,
"c910beecbd7d4de4aeebc27f4ef3c47d"
]
},
{
"_index": "sw_product_1717666750",
"_id": "cf5bd70f43a74c879b94d8010973adb9",
"_score": null,
"_source": {
"id": "cf5bd70f43a74c879b94d8010973adb9",
"autoIncrement": 931.0
},
"fields": {
"displayGroup": [
"922c42f3b5bb764a6bc09a62063e4088"
]
},
"sort": [
2012.0,
"cf5bd70f43a74c879b94d8010973adb9"
]
},
{
"_index": "sw_product_1717666750",
"_id": "d5a743b3fc9b43a7ac694c0f2c6d1ea2",
"_score": null,
"_source": {
"id": "d5a743b3fc9b43a7ac694c0f2c6d1ea2",
"autoIncrement": 1967.0
},
"fields": {
"displayGroup": [
"429fc3c2ef5f847e41b66cb2e0e190ba"
]
},
"sort": [
2012.0,
"d5a743b3fc9b43a7ac694c0f2c6d1ea2"
]
},
{
"_index": "sw_product_1717666750",
"_id": "bc1dc740eb26402280946db4a12e7ace",
"_score": null,
"_source": {
"id": "bc1dc740eb26402280946db4a12e7ace",
"autoIncrement": 1971.0
},
"fields": {
"displayGroup": [
"283b3fe868db753caad9880f3b77067c"
]
},
"sort": [
2009.0,
"bc1dc740eb26402280946db4a12e7ace"
]
}
]
},
"aggregations": {
"total-count": {
"value": 14
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
2.52 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":"4c1c83b3b5444daba39fe850f0826d34"}}}},{"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": 6303.83,
"avg": 954.3128571428572,
"sum": 13360.380000000001
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"properties": {
"doc_count": 236,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"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": "a22ffb31eeef4dec9f2742125159dc7d",
"doc_count": 13
},
{
"key": "c00d09ec51844aefa2781fcc00839644",
"doc_count": 11
},
{
"key": "b81318b1758e42bc8be1559a7f6df0bc",
"doc_count": 10
},
{
"key": "69fe8056639d4444882ef24c2b912ba8",
"doc_count": 6
},
{
"key": "6f92af8d0f0a4ae99239c1bd9f68d3d3",
"doc_count": 6
},
{
"key": "c82b182269744cecbfea2fc49d9b6766",
"doc_count": 6
},
{
"key": "5ef30141011b40d7863ad6aae9217493",
"doc_count": 4
},
{
"key": "d3a2f712b61249b2888f1f071396654b",
"doc_count": 4
},
{
"key": "f3addfa0aa8f492b93ef4d41f76ff1fd",
"doc_count": 4
},
{
"key": "004c9f1122be4d3db1dadecc53a44cdf",
"doc_count": 3
},
{
"key": "14b9d6582da24b8da3125aa5edaece5f",
"doc_count": 3
},
{
"key": "18a60018f5894416a3ba174954b557c8",
"doc_count": 3
},
{
"key": "256aa072d598469cbe2a99d63859b36e",
"doc_count": 3
},
{
"key": "50bede51bbaa4f4aba7003a45cf998b3",
"doc_count": 3
},
{
"key": "d0c07ddcae6a4425b96e363887660b9f",
"doc_count": 3
},
{
"key": "d5a5144d153f4755a8ee22bd046c174e",
"doc_count": 3
},
{
"key": "e577924c14df48179d45585b28aacca1",
"doc_count": 3
},
{
"key": "1f819bce5fc84bcea16f7793e2ad7466",
"doc_count": 2
},
{
"key": "276cdd68b28844569066cf000ab6cb31",
"doc_count": 2
},
{
"key": "4d0caa14da8741f3b3809e6dbda669ab",
"doc_count": 2
},
{
"key": "54d95eb6d8e6492aa1ffeb60b06040d3",
"doc_count": 2
},
{
"key": "654db2468a5f44b49b398a893a358d22",
"doc_count": 2
},
{
"key": "7acdd820ece049b888fbee329af0cd5f",
"doc_count": 2
},
{
"key": "90fa3a7cc950451b91847fc8d1faa77f",
"doc_count": 2
},
{
"key": "a9705b0538cb42a3be5018cf5701955d",
"doc_count": 2
},
{
"key": "b57d1d0eb833459bbda07a3adca6714c",
"doc_count": 2
},
{
"key": "b8dd631079d34d42b559a3eb42f6cfa6",
"doc_count": 2
},
{
"key": "1b621d46e2c34576a00cf4d2e8e07244",
"doc_count": 1
},
{
"key": "1e1dd0e1571c41308c405df2e656f16c",
"doc_count": 1
},
{
"key": "2ba9657c9c574e9aa85f70814078ad7e",
"doc_count": 1
},
{
"key": "2cfa71698f8846af805a68264beefa3c",
"doc_count": 1
},
{
"key": "2e4f79e00ecd48dfb1212bfa6adf839f",
"doc_count": 1
},
{
"key": "33a6b259d7944757808f958567245fb9",
"doc_count": 1
},
{
"key": "369c5903d53c4dbb97b5177b6f25ec80",
"doc_count": 1
},
{
"key": "3f06559cf4884d74a5afdeae798ab6e9",
"doc_count": 1
},
{
"key": "56a1d6dfb7544a49b5ea6fea8e824484",
"doc_count": 1
},
{
"key": "58cef6e5235b4ff59686115a82e94a4e",
"doc_count": 1
},
{
"key": "734cb33097414160a497d9c9af6185e2",
"doc_count": 1
},
{
"key": "79709bed515d4a1593cdc09df948021e",
"doc_count": 1
},
{
"key": "7af1972af00d450889a1a91efaecec7d",
"doc_count": 1
},
{
"key": "815603eeacfd418fb360ad2e9469c0b1",
"doc_count": 1
},
{
"key": "85007d00dbb3447c90183857550eb42a",
"doc_count": 1
},
{
"key": "8e630823e6b940e88db3ec45984e9c63",
"doc_count": 1
},
{
"key": "9498cd3f868348f2aea5ff39421c4628",
"doc_count": 1
},
{
"key": "950074db1e3749c6a39dbce3b25beda3",
"doc_count": 1
},
{
"key": "9f63919f237d4a99826fb4355de59356",
"doc_count": 1
},
{
"key": "ad799a5d08034eb29cc48599b830b580",
"doc_count": 1
},
{
"key": "b034280d28ef4237af04b228c841fc8d",
"doc_count": 1
},
{
"key": "b35b7e58ba1b45b4984e24c9f9b7b050",
"doc_count": 1
},
{
"key": "b3b5e9838a334178abcab9f217af98e2",
"doc_count": 1
},
{
"key": "b5f152dffd5d448c8f5701dbe139b710",
"doc_count": 1
},
{
"key": "b6c4e9434754477e90b9cd6e1dbc7c87",
"doc_count": 1
},
{
"key": "b6c9b40b7de442d28b2c97790830e1e5",
"doc_count": 1
},
{
"key": "b791b38a3b464e77ba7ac233fc68303f",
"doc_count": 1
},
{
"key": "b9d4346c4fa84a85a5419f545afd43a1",
"doc_count": 1
},
{
"key": "bb62085cec734c48a25a9f07470cf013",
"doc_count": 1
},
{
"key": "bcfd8dff179149088e720a4ff4527e56",
"doc_count": 1
},
{
"key": "bda6fb3980a84a4197e33a8c6e3d90bf",
"doc_count": 1
},
{
"key": "c057aaf844b84af9a250efc7be0def2c",
"doc_count": 1
},
{
"key": "c0dd0aefb7144160b57224708b21ebf9",
"doc_count": 1
},
{
"key": "c1d70719badf4382b9dabd1bb5a380bf",
"doc_count": 1
},
{
"key": "c99a2b4ae42146a7a2e45c9ab70b22ed",
"doc_count": 1
},
{
"key": "d4a351b83deb42719a00ef284e34b4ce",
"doc_count": 1
},
{
"key": "d7fbeb9111714623878116b0e0dda717",
"doc_count": 1
},
{
"key": "da73ead1b1964a929f9369fb17e21c3b",
"doc_count": 1
},
{
"key": "dbc9df5e0bfe45c09a795a0a77f597e1",
"doc_count": 1
},
{
"key": "de9dd8e6f87942da83e00cc6769b431f",
"doc_count": 1
},
{
"key": "e74b76c1e1f540d48d6c8e83b48b7e75",
"doc_count": 1
},
{
"key": "eac8c8144d2e468883704735d116f85f",
"doc_count": 1
},
{
"key": "eacf349b35b7494c8bbf7cb92ee7e3d6",
"doc_count": 1
},
{
"key": "ed25d0f13c934600bbc33b8db2b7962d",
"doc_count": 1
},
{
"key": "fb2fc0a14b79451dac8829bfbac80116",
"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
|