I can write REST, painless, etc. scripts using the Kibana tools (dev Tools) console. At least I can write REST searches. Is it possible to take these searches and make them into a Kibana object? Right now it only seems possible to take the very limited filter operations provided in the discover interface and make them objects.
When I edit the filter in the discovery interface and copy in my script from the dev Tools console, Kibana changes it and removes fields. How can I keep what I create in dev Tools console that does what I want it to do?