Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Normal field alias no longer stored in the response. #59

Closed
penghuo opened this issue May 22, 2019 · 2 comments
Closed

Normal field alias no longer stored in the response. #59

penghuo opened this issue May 22, 2019 · 2 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@penghuo
Copy link
Contributor

penghuo commented May 22, 2019

The normal filed with alias doesn't work as expected. e.g.

Query

POST _opendistro/_sql?
{
  "query": "SELECT address as key, age FROM sql_index_account WHERE address is not null limit 10"
}

Response

{
   ...
  "hits" : {
    ...
    "hits" : [
      {
        ....
        "_source" : {
          "address" : "171 Putnam Avenue",
          "age" : 39
        }
      }
    ]
  }
}

Expected Response

{
   ...
  "hits" : {
    ...
    "hits" : [
      {
        ....
        "_source" : {
          "key" : "171 Putnam Avenue",
          "age" : 39
        }
      }
    ]
  }
}
@penghuo penghuo added the bug Something isn't working label Jun 26, 2019
@arsen-es arsen-es self-assigned this Aug 21, 2019
@arsen-es
Copy link
Contributor

Didn't find a generic way for a fix, will keep looking, in the meantime asked elastic community as well:
https://discuss.elastic.co/t/rename-fields-in-the-search-output/196850

@dai-chen
Copy link
Member

This is a same issue as #147 which we won't fix for now.

@dai-chen dai-chen added the wontfix This will not be worked on label Oct 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants