opensearch-project / index-management-dashboards-plugin

🗃 Manage policies and jobs and automate periodic data operations in OpenSearch Dashboards
https://opensearch.org/docs/latest/im-plugin/index/
Apache License 2.0
15 stars 86 forks source link

[BUG] Unable to filter indices in "Manage indices" #144

Open amirkkn opened 2 years ago

amirkkn commented 2 years ago

Describe the bug

I am not able to filter any indices in "Manage indices" in 'index management' section, e.g. Status == cold or if I put the whole index logstash-toolbox-test-2022.02.16. It always shows:

There are no managed indices matching your applied filters. Reset your filters to view your managed indices.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Index Management'
  2. Click on 'Managed indices'
  3. Type any filter command to filter some fields, for ex. filter by State or Job Status.

Expected behavior Filter indices by specific state or specific Job Status or index pattern

OpenSearch Version 1.2.4

Dashboards Version 1.2.0

kavilla commented 2 years ago

Hello @amirkkn!

Thanks for opening this! Will send this over to @opensearch-project/index-management-dashboards-plugin.

bowenlan-amzn commented 2 years ago

The search bar on Managed Indices has this problem. We will work on fixing this issue. Thanks.

Here is the related PR: https://github.com/opensearch-project/index-management/pull/267

Give some more details of the root cause of this issue: We are doing a query string query on the managed.index field, it's a text field, so it will be parsed when being queried. logstash-toolbox-test will be parsed to logstash toolbox test And the field we are searching for is like *logstash-toolbox-test* https://github.com/opensearch-project/index-management-dashboards-plugin/blob/483da5d116acc2845a8cc4f8a8fbe6268200992d/server/utils/helpers.ts#L60

We want to change this field to keyword type, so it won't be parsed.