{"record":{"id":"8f04b2b363137c07","repo":"quickwit-oss/quickwit","slug":"unknown-index-subcommand-subcommand","errorCode":null,"errorMessage":"unknown index subcommand `{subcommand}`","messagePattern":"unknown index subcommand `(.+?)`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"quickwit/quickwit-cli/src/index.rs","lineNumber":299,"sourceCode":"            Self::Search(_) => Level::ERROR,\n            _ => Level::INFO,\n        }\n    }\n\n    pub fn parse_cli_args(mut matches: ArgMatches) -> anyhow::Result<Self> {\n        let (subcommand, submatches) = matches\n            .remove_subcommand()\n            .context(\"failed to parse index subcommand\")?;\n        match subcommand.as_str() {\n            \"clear\" => Self::parse_clear_args(submatches),\n            \"create\" => Self::parse_create_args(submatches),\n            \"delete\" => Self::parse_delete_args(submatches),\n            \"describe\" => Self::parse_describe_args(submatches),\n            \"ingest\" => Self::parse_ingest_args(submatches),\n            \"list\" => Self::parse_list_args(submatches),\n            \"search\" => Self::parse_search_args(submatches),\n            \"update\" => Self::parse_update_args(submatches),\n            _ => bail!(\"unknown index subcommand `{subcommand}`\"),\n        }\n    }\n\n    fn parse_clear_args(mut matches: ArgMatches) -> anyhow::Result<Self> {\n        let client_args = ClientArgs::parse(&mut matches)?;\n        let index_id = matches\n            .remove_one::<String>(\"index\")\n            .expect(\"`index` should be a required arg\");\n        let assume_yes = matches.get_flag(\"yes\");\n        Ok(Self::Clear(ClearIndexArgs {\n            client_args,\n            index_id,\n            assume_yes,\n        }))\n    }\n\n    fn parse_create_args(mut matches: ArgMatches) -> anyhow::Result<Self> {\n        let client_args = ClientArgs::parse(&mut matches)?;","sourceCodeStart":281,"sourceCodeEnd":317,"githubUrl":"https://github.com/quickwit-oss/quickwit/blob/a39730c5cdcd1a4fe798403737ae293999ea21f8/quickwit/quickwit-cli/src/index.rs#L281-L317","documentation":"The `quickwit index` subcommand parser received a sub-subcommand that matches none of the registered index operations (clear, create, delete, describe, search, ingest, list, ...). The subcommand was extracted from the ArgMatches but fell through the match arms to the error branch.","triggerScenarios":"Thrown at quickwit/quickwit-cli/src/index.rs:299 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `quickwit index --help` to list valid index subcommands","Check for typos or deprecated subcommand names"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a39730c5cdcd1a4fe798403737ae293999ea21f8","analyzedAt":"2026-09-08T13:19:37.784Z","contentChangedAt":"2026-09-08T13:19:37.784Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}