-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Alias fields not visible in Discover tab for non-date field types #7632
Comments
Will triage and release feedback today |
We are currently working on supporting auto complete for Discover for 2.17. That should help mitigate some of the pain here until we dig deeper into this issue. |
One thing that I noticed that the type of the first screenshot of the release date movies is of type text indicated by the 't' and doesn't display. While the second screenshot indicates it is a date type indicated by the calendar icon. Within OpenSearch Dashboards we map mappings for OpenSearch to specific types here: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/data/common/osd_field_types/osd_field_types_factory.ts#L46. Which is why without aliasing it wouldn't display something like https://opensearch.org/docs/latest/field-types/supported-field-types/alias/ Do you mind setting it to an alias with the same level of nested structure? |
Why are we not showing the results of alias fields when it is not date-time field ?We are not receiving those values from OpenSearch in the call hence we don’t show those data points. Request Sent by Discover
Response
Why are we seeing date-time alias fields ?For any date time fields we have a logic that populates the datetime field in the “docvalue_fields": [] explicitly which causes the doctype fields to be part of the queries response , Hence Discover is able to show them Request
Response
The difference is the docvalue fields array between the 2 requests. What is docvalue search parameter ?DocValues are essentially a data structure used by Elasticsearch to store the fields to support efficient sorting and searching operations. Why are we using docvalue fields only for date-time field type ?date-time fields can have different formats in original source documents, but we want a common format that can be used for filtering and aggregation. Therefore instead of showing the original source form of those we are retuning the docvalue or the common way how they are stored internally in ElasticSearch. Code snippet where we are populating the docValueFields.
cc @ashwin-pc |
This seems to be fixed in 2.15 now. |
Describe the bug
Alias fields in OpenSearch are not consistently visible in the Discover . The visibility depends on the data type of the field being aliased. Specifically, alias fields are visible when the aliased field is of type "date", but not visible when the aliased field is of type "keyword".
To Reproduce
Expected behavior
Both "year" and "release_date_movies" fields should be visible in the Discover for both indices.
Actual Behavior:
OpenSearch Version
currently only try main
Dashboards Version
currently only try main
The text was updated successfully, but these errors were encountered: