add doc delete (#23)

This commit is contained in:
T. von Dein
2026-05-29 11:05:57 +02:00
parent f7302ea506
commit 130d0b879d
5 changed files with 125 additions and 21 deletions

View File

@@ -26,14 +26,7 @@ import (
"github.com/urfave/cli/v3"
)
func Search(conf *cfg.Config) *cli.Command {
return &cli.Command{
Name: "search",
Aliases: []string{"/"},
Usage: "search within an index",
UsageText: `search [options] [<[field<sep>]pattern> ...]
<sep> might be one of:
const SearchUsage = `<sep> might be one of:
=: Must match
!=: Must not match
@@ -52,7 +45,14 @@ https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#dat
For timestamp formats refer to:
https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-date-format
`,
`
func Search(conf *cfg.Config) *cli.Command {
return &cli.Command{
Name: "search",
Aliases: []string{"/"},
Usage: "search within an index",
UsageText: "search [options] [<[field<sep>]pattern> ...]\n" + SearchUsage,
Flags: []cli.Flag{
&cli.StringFlag{