Open eirsep opened 1 month ago
When our plugin (Security Analytics) fetches data from an index, it tries to sort by _seq_no which fails on empty index instead of returning empty result.
@eirsep can't this be handled in plugin ? any specific use case on why we do this query ?
Describe the bug
_
_seq_no
_ field is not created by OpenSearch at index creation time. It seems to be created at the time of ingestion of 1 st document for that indexWhen our plugin (Security Analytics) fetches data from an index, it tries to sort by
_seq_no
which fails on empty index instead of returning empty result.Related component
Indexing
To Reproduce
Expected behavior
OpenSearch should use a protected index template that defines metadata mappings like _version, _seq_no for all indices at index createion time itself
Additional Details
No response