Skip to content
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

Cannot query nested field #61875

Closed
mikelam14 opened this issue Mar 30, 2020 · 1 comment
Closed

Cannot query nested field #61875

mikelam14 opened this issue Mar 30, 2020 · 1 comment

Comments

@mikelam14
Copy link

mikelam14 commented Mar 30, 2020

Kibana version:
7.4.1
Elasticsearch version:
7.4.1
Server OS version:
AWS EC2 linux
Browser version:
chrome
Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):
Elastic Cloud ELK

Describe the bug:
Reposting the discussion from here - https://discuss.elastic.co/t/cannot-query-nested-field/225597
I am using elastic cloud ELK. I have created an index with a mapping containing several nested fields. I checked on Kibana and it looks fine. However when I try to write a query in KQL for the nested field, it does not behave the way it should. According to this merge request, and the screenshot below, the autocomplete suggestion should start suggesting a nested syntax while I start to type in the nested field, but it didn't.
Index shown:

>      "field_1": {
>             "type": "nested",
>             "properties": {
>               "sub-field_1": {
>                 "type": "text",
>                 "fields": {
>                   "keyword": {
>                     "type": "keyword",
>                     "ignore_above": 256
>                   }
>                 }
>               },
>               "sub-field_2": {
>                 "type": "text",
>                 "fields": {
>                   "keyword": {
>                     "type": "keyword",
>                     "ignore_above": 256
>                   }
>                 }
>               },

Also I have tried querying the sub-field directly with a wildcard search, like field_1.sub-field_1: *, but not a single result returned.

Related to this pull request - #47070

Steps to reproduce:

  1. Create nested field in index
  2. Run kibana query

Expected behavior:
Nested field query autocomplete suggestion , like
field: {sub_field:

Screenshots (if relevant):
Desired
https://user-images.githubusercontent.com/6239176/65991057-b9fbfe80-e45a-11e9-907c-827bb2c6e453.gif

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@wylieconlon
Copy link
Contributor

Nested query support was added in 7.6, and you are on 7.4. Closing as this is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants