kibana/docs/management
Matt Bargar 3043ee78c8 Check sort:options for Discover default sort order (#13708)
* Check sort:options for Discover default sort order

I went back and forth on a lot of different solutions for this.

Initially I thought it would make sense to just allow users to set a
default saved search in Discover. There were some problems with that
approach though. It would change the default workflow in Discover.
Instead of starting with an unsaved search, users would be editing a
saved search by default. I could see this leading to a lot of
unintentional changes to the default. The settings from the default
saved search also wouldn't carry over to new searches, which I think
would be desirable most of the time.

I also considered adding a new advanced setting for specifying a default
sort field/direction. This kind of setting would make more sense at the
index pattern level though. One field may not be valid across all index
patterns.

So I ended up going with the simplest solution. It solves the issue
identified by the author of the linked issue and nothing more. If a sort
order is specified in the existing sort:options advanced setting, we'll
use that direction when sorting on the index pattern's timestamp field
by default.

Fixes https://github.com/elastic/kibana/issues/5164

* Create a new advanced setting instead of re-using sort:options

* Just pass a default order
2017-08-29 15:42:36 -04:00
..
field-formatters docs: Overhaul of doc structure for 5.0+ (#8821) 2016-10-24 21:41:32 -04:00
index-patterns docs: setting up cross cluster search (#12599) 2017-07-05 17:18:55 -04:00
advanced-options.asciidoc Check sort:options for Discover default sort order (#13708) 2017-08-29 15:42:36 -04:00
index-patterns.asciidoc docs: removal of "expand indices" feature in breaking changes (#12830) 2017-07-13 09:46:29 -04:00
managing-fields.asciidoc [DOCS] Update Kibana Guide to use shared attributes (#12505) 2017-06-27 10:13:42 -07:00
managing-saved-objects.asciidoc docs: Overhaul of doc structure for 5.0+ (#8821) 2016-10-24 21:41:32 -04:00