* 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 |
||
---|---|---|
.. | ||
field-formatters | ||
index-patterns | ||
advanced-options.asciidoc | ||
index-patterns.asciidoc | ||
managing-fields.asciidoc | ||
managing-saved-objects.asciidoc |