mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 08:49:27 -04:00
# Backport This will backport the following commits from `main` to `8.16`: - [[Search Profiler] Index field no longer resets on query edit (#215420)](https://github.com/elastic/kibana/pull/215420) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Matthew Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2025-03-21T13:29:33Z","message":"[Search Profiler] Index field no longer resets on query edit (#215420)\n\n## Summary\n\nPreviously, editing the query would reset the index field to `_all`.\nThis was due to using `useState` instead of `useRef` to store the query\nvalue.\n\nCloses https://github.com/elastic/kibana/issues/214416\n\nHow to test\n1. Go to search profiler\n2. Enter an index name, anything but `_all` - which is already there\n3. Edit the query\n4. Did the index value remain unchanged? Good! Its fixed!\n\nALSO - need to test to make sure this works with content in the url.","sha":"f77e29f5827c621d29959cbbf8514ce497565263","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Kibana Management","Feature:Search Profiler","backport:prev-major","v9.1.0"],"title":"[Search Profiler] Index field no longer resets on query edit","number":215420,"url":"https://github.com/elastic/kibana/pull/215420","mergeCommit":{"message":"[Search Profiler] Index field no longer resets on query edit (#215420)\n\n## Summary\n\nPreviously, editing the query would reset the index field to `_all`.\nThis was due to using `useState` instead of `useRef` to store the query\nvalue.\n\nCloses https://github.com/elastic/kibana/issues/214416\n\nHow to test\n1. Go to search profiler\n2. Enter an index name, anything but `_all` - which is already there\n3. Edit the query\n4. Did the index value remain unchanged? Good! Its fixed!\n\nALSO - need to test to make sure this works with content in the url.","sha":"f77e29f5827c621d29959cbbf8514ce497565263"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215420","number":215420,"mergeCommit":{"message":"[Search Profiler] Index field no longer resets on query edit (#215420)\n\n## Summary\n\nPreviously, editing the query would reset the index field to `_all`.\nThis was due to using `useState` instead of `useRef` to store the query\nvalue.\n\nCloses https://github.com/elastic/kibana/issues/214416\n\nHow to test\n1. Go to search profiler\n2. Enter an index name, anything but `_all` - which is already there\n3. Edit the query\n4. Did the index value remain unchanged? Good! Its fixed!\n\nALSO - need to test to make sure this works with content in the url.","sha":"f77e29f5827c621d29959cbbf8514ce497565263"}}]}] BACKPORT--> Co-authored-by: Matthew Kime <matt@mattki.me> |
||
---|---|---|
.. | ||
common | ||
public | ||
server | ||
jest.config.js | ||
kibana.jsonc | ||
README.md | ||
tsconfig.json |
Search Profiler
About
The search profiler consumes the Profile API
by sending a search
API with profile: true
enabled in the request body. The response contains
detailed information on how Elasticsearch executed the search request. People use this information
to understand why a search request might be slow.
How to test
Query profile
Execute the default query to generate results in the Query profile tab.
{
"query":{
"match_all" : {}
}
}
Aggregation profile
Execute an aggregation query to generate results in the Aggregation profile tab.
{
"aggs": {
"avg_grade": { "avg": { "field": "grade" } }
}
}