{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/8402","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/8402/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/8402/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/8402/events","html_url":"https://github.com/elastic/kibana/issues/8402","id":178370607,"number":8402,"title":"[Discover] Available Fields sometimes hidden","user":{"login":"Stacey-Gammon","id":16563603,"avatar_url":"https://avatars.githubusercontent.com/u/16563603?v=3","gravatar_id":"","url":"https://api.github.com/users/Stacey-Gammon","html_url":"https://github.com/Stacey-Gammon","followers_url":"https://api.github.com/users/Stacey-Gammon/followers","following_url":"https://api.github.com/users/Stacey-Gammon/following{/other_user}","gists_url":"https://api.github.com/users/Stacey-Gammon/gists{/gist_id}","starred_url":"https://api.github.com/users/Stacey-Gammon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stacey-Gammon/subscriptions","organizations_url":"https://api.github.com/users/Stacey-Gammon/orgs","repos_url":"https://api.github.com/users/Stacey-Gammon/repos","events_url":"https://api.github.com/users/Stacey-Gammon/events{/privacy}","received_events_url":"https://api.github.com/users/Stacey-Gammon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/discuss","name":"discuss","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T14:52:34Z","updated_at":"2016-09-26T14:29:35Z","closed_at":"2016-09-26T14:29:35Z","body":"If you have a time range and query selected in the Discover tab that returns greater than 500 results, and some 500 + x result contains data for a field that the first 500 do not, that field will not be shown in the Available Field list unless 'hide missing fields' is unchecked.\r\n\r\nIf 'hide missing fields' is unchecked, it will appear, but with a warning message `This field is present in your elasticsearch mapping but not in any documents in the search results`.\r\n\r\nThis is somewhat misleading as the list of fields displayed in Available Fields can depend on sort order - not on search query or time range.  Change the sort of the timestamp field and different fields may be shown or hidden.\r\n\r\nIt could be useful to show all fields across all documents, even those that are in the 500+ range.  This would give users the ability to sort by those fields, even if the current 500 results don't contain any data for it.\r\n\r\nYou can reproduce this issue by running npm makelogs, then manually adding a new document with a new field that contains data, but with a timestamp that is farther in the past then the rest of the documents (to make it easy to isolate).  Switch to the discover tab and set your time range so it encompasses all your data, plus the manually added one.  Sort by date so most recent is first. You will see your document in the chart, but not in the search results.  You will not see the newly added field.  Sort by date so most recent is last.  You should now see your newly added field.\r\n\r\n"}}
{"actor":{"display_login":"lukasolson"}}