Perhaps it would be more convenient, esp. for plugin writers, if es_document was/returned a custom class. This SO answer describes how that could be set up. fetch would then be a method rather than a function.
OTOH, we also want to send raw strings without packing them in a useless StringDocument class...
Perhaps it would be more convenient, esp. for plugin writers, if
es_document
was/returned a custom class. This SO answer describes how that could be set up.fetch
would then be a method rather than a function.OTOH, we also want to send raw strings without packing them in a useless
StringDocument
class...