Idea for the API:
E.g. we’d add methods such as this one to the schema manager:
And calling such methods would result in the creation of files in the given directory, with a predictable directory structure:
Of course the content of the export would be backend-specific; for Lucene, it would just do nothing (or maybe create the directory structure but leave a file for each index whose content says “the Lucene backend does not support exporting the schema”). Later we might add more options (filtering, …) and features (export curl scripts, …), but let’s wait a bit before working on that: exporting json should be enough for most people. |