Configuring Keyword Autocompletion in the Search Command
Description
Enables a mode that eliminates the need to manually append .keyword
in search
commands.
Important Note!
Before enabling .keyword
autocompletion, ensure your queries in jobscheduler
and dashboards
don't require migration. Verify using the Migration API.
Managing Keyword Autocompletion
The .keyword
autocompletion is controlled through _cluster/settings
configuration. The parameter name is sme.core.enable_search_auto_keyword
.
To check the current parameter state, execute this command in the developer console (Main menu
- Settings
- Dev Console
):
GET _cluster/settings
Example response:
{
"persistent": {
...
"sme": {
"core": {
"enable_search_auto_keyword": "true"
}
},
...
},
"transient": {}
}
To enable .keyword
autocompletion, execute this command in the developer console:
PUT _cluster/settings
{
"persistent": {
"sme.core.enable_search_auto_keyword": true
}
}
To disable .keyword
autocompletion, execute this command in the developer console:
PUT _cluster/settings
{
"persistent": {
"sme.core.enable_search_auto_keyword": false
}
}