Skip to content

[BUG]Discover: Some Fields Aren't Displayed in the Left Navigation Bar #5400

Closed
@MadaniKK

Description

Describe the bug
In Discover some fields are not being displayed in the left Field Nav

To Reproduce

  • step 1: go to dev tools. create an index and add nested field.
PUT test-2/_doc/1
{
  "products": [
    {
      "base_price": 28.99,
      "discount_percentage": 0,
      "quantity": 1,
      "manufacturer": "Tigress Enterprises"
    },
    {
      "base_price": 32.99,
      "discount_percentage": 0,
      "quantity": 1,
      "manufacturer": "Oceanavigations"
    }
  ]
}

PUT test-2/_doc/2
{
  "products": [
    {
      "base_price": 31.14,
      "discount_percentage": 5,
      "quantity": 1,
      "manufacturer": "Virora"
    },
    {
      "base_price": 35.69,
      "discount_percentage": 10,
      "quantity": 3,
      "manufacturer": "Oceanavigations"
    }
  ]
}

  • step 2: go to Dashboards management --> Index patterns --> create index pattern
Screenshot 2023-10-25 at 12 49 21
  • step 3: enter test* to match test-2
  • go back to discover. in the index pattern selector (on top of left nav), choose test*.

So in new Discover (2.11), if you check the left field nav, you could see we miss the nested fieldproducts. but the flyout and display are fine. It is just that there is no way customer could select nested field.

Screenshot 2023-10-25 at 12 37 29

But if we do the above steps in 2.9 OSD with legacy discover, we could see products in left nav and once click + button to select it, you could see multiple lines in each row as customer shown.

Screenshot 2023-10-25 at 12 13 16 Screenshot 2023-10-25 at 12 44 11 Screenshot 2023-10-25 at 12 45 34

I think we need to first solve the nested field not picked up by left nav then verify if we see multiline issue after select the nested field.

Originally posted by @ananzh in #5208 (comment)

Expected behavior
The Left field nav should display all these fields
image

OpenSearch Version
3.0.0

Dashboards Version
Discover 2.11

Plugins

Please list all plugins currently enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

Metadata

Assignees

Labels

bugSomething isn't workingdiscoverfor discover reinventv2.12.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions