Hi! Long time listener, first time caller here.
Our custom search command needs some slow initialization, which we would prefer to skip on repeated calls.
Is there a way to keep the process alive after the first invocation and only call dispatch() afterwards?
Something that does what scripttype = persist does for REST endpoints.
My understanding is that the protocol would allow this.
Calling dispatch() in a loop sadly doesn't work - would've been too easy, huh?
(It does work in so far that the command finishes - it's just that the script gets started again the next time)