Closed jzonthemtn closed 8 months ago
This requires more thought. The backend store could require initialization settings prior to being usable. Creating an index on the fly could lead to a less than desired user experience, and it could cause events/queries to be stored in the wrong places if a user thinks the data is going one store but a typo has it going to a different store. I am leaning toward having the store creation be a methodical process to help ensure a good user experience and a proper configuration.
We should also consider other backends in addition to OpenSearch. For instance, if a MySQL database is used, we likely won't want the plugin to automatically create database structure on the fly. Having the user initialize the plugin using PUT /_plugins/ubi/{store}
would be what would create those database tables. I think we should strive to give users the same experience regardless of the type of backend being used.
The changes required by #67 will disallow the use of a default store. This issue will be closed and a new issue to remove the use of a default query store should be created.
Similar to #56, use a default store for events if no name is provided.