mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 16:14:17 +02:00
hide ds backend indices as any other hidden indices (#99)
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -6,4 +6,3 @@
|
|||||||
- add datastream support:
|
- add datastream support:
|
||||||
https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream
|
https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream
|
||||||
|
|
||||||
also exclude data stream backing indices from index ls
|
|
||||||
|
|||||||
@@ -62,11 +62,6 @@ func filterIndices(conf *cfg.Config, list indices.Response) indices.Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool {
|
return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool {
|
||||||
if strings.HasPrefix(*index.Index, ".ds-") {
|
|
||||||
// ignore data stream backing indicies
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if !conf.Partials && strings.HasPrefix(*index.Index, "partial-") {
|
if !conf.Partials && strings.HasPrefix(*index.Index, "partial-") {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user