mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 11:34:17 +02:00
add index ls command, add table and color support
This commit is contained in:
@@ -19,6 +19,7 @@ package es
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"strings"
|
||||
|
||||
"codeberg.org/scip/esctl/pkg/cfg"
|
||||
@@ -64,6 +65,8 @@ func Search(conf *cfg.Config, q string) error {
|
||||
return fmt.Errorf("Error running search (esdsl): %s", err)
|
||||
}
|
||||
|
||||
slog.Debug("ES result", "search", res)
|
||||
|
||||
for _, hit := range res.Hits.Hits {
|
||||
fmt.Printf("%s\n", hit.Source_)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user