[BUG] Overriding field type in index pattern not working as it should
Describe the bug
We changed the mapping from string to date for a field on the opensearch side. This is picked up by dashboards, but in the drop down I can't select the date type:
I don't why URL is there, but date is missing.
Expected behavior URL is gone, date is added alongside the string option
OpenSearch Version 2.14.0
Dashboards Version 2.14.0
Plugins
Default docker image
Screenshots
^^
Host/Environment (please complete the following information): ^^
Additional context
Add any other context about the problem here.
@sandervandegeijn Could you refresh the index pattern? index pattern is not auto refreshed based on the indices. and recheck the issue?
Refreshed the index pattern, it correctly identifies both string and date fields in the different indices. But in the dropdown I can't choose the date option, only the URL option. Where that is coming from: no idea :)
needs more info label can be removed? :)
@sandervandegeijn I see that the index pattern mentions jat there is a conflict in the type. Do all the indices selected by the pattern have the same date type?
No they don't :) I had indices with text mapping and with date (and it detected that). But the drop down gives URL as an option, which isn't the correct one in any case.
Was this bug always there or is it a regression in 2.14?
No clue sorry :)
We display the overrides based on mapping in opensearch. If the mappings are not explicitly defined at the time of indexing it tries guessing the mapping which might not be accurate. If you want accurate typing mapping you can specify the mapping while creating the index or create an index template that could help in this scenario.
@opensearch-project/admin transfer it to opensearch (since we are just reading the mapping off opensearch )