Query Metrics
7.00 ms
Query Time
1
Node(s)
2
Indices
Queries
| #▲ | Execution Time | Info |
|---|---|---|
| 1 | 2.96 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":"ea3936af0bac458492aab361c42a55bf"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"fac494ae6fe34da3acd1139c86c45271"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"sort":[{"_script":{"type":"string","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.toString();\n }\n}\n\nreturn '';\n","lang":"painless","params":{"field":"name","languages":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"]}},"order":"ASC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
|
| 2 | 1.58 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":"ea3936af0bac458492aab361c42a55bf"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"fac494ae6fe34da3acd1139c86c45271"}}}},{"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_rule0196b066e3877380a5ef98853a9f194a_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule0196b066e3877380a5ef98853a9f194a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule0196b068a36772e4b722b24bb90607fe_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule0196b068a36772e4b722b24bb90607fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule01961fdc207e71ba8b3a3b069a22fc97_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule01961fdc207e71ba8b3a3b069a22fc97_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule140c7c93c4fe400da1ce8152830f1ab4_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule140c7c93c4fe400da1ce8152830f1ab4_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule3cd2f441ba7c4cddb1fc265c896cf575_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule3cd2f441ba7c4cddb1fc265c896cf575_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule6771e044fb56483eae6829116651fbf0_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule6771e044fb56483eae6829116651fbf0_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule080c0e5f0c9348f38ef8182aea51219c_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule080c0e5f0c9348f38ef8182aea51219c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule09ffb1a48d314665a2d84a4f657c4de4_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule09ffb1a48d314665a2d84a4f657c4de4_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_rule10bf831fbaac4acba5a6083b711cfced_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_rule10bf831fbaac4acba5a6083b711cfced_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0},{"key":"cheapest_price_ruledefault_currency993d0ad41c334ba2974e9ff40329dd85_gross","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":30.0}],"decimals":1,"round":false,"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"}
|
| 3 | 1.86 ms |
Request:
{"index":"sw_product","search_type":"query_then_fetch","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":"ea3936af0bac458492aab361c42a55bf"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"0c63909a3e4a42238876c72a3124fe66"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"from":0,"size":10000,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
|
| 4 | 1.04 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":"ea3936af0bac458492aab361c42a55bf"}}]}}}},{"term":{"active":true}}]}},{"nested":{"path":"categoriesRo","query":{"term":{"categoriesRo.id":"0c63909a3e4a42238876c72a3124fe66"}}}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"aggregations":{"max-price":{"max":{"field":"price.c_993d0ad41c334ba2974e9ff40329dd85.gross"}},"min-price":{"min":{"field":"price.c_993d0ad41c334ba2974e9ff40329dd85.gross"}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
|
Cluster Status
{
"cluster_name": "docker-cluster",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 2,
"active_shards": 2,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 2,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 50.0
}
Indices
| Name▲ | Status | Replication (pri, rep) | Doc Count |
|---|---|---|---|
| sw_product_1753884706 | open | 1, 1 | 71 |
| sw_product_1768901928 | open | 1, 1 | 71 |