mu-find: add --analyze option

For analyzing queries with the new query-parser.
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-09 11:49:42 +03:00
parent a9bd6e69d3
commit f6122ecc9e
4 changed files with 43 additions and 25 deletions

View File

@ -337,12 +337,6 @@ sub_find(CLI::App& sub, Options& opts)
{ Format::Json,
{"json", "JSON"}
},
{ Format::XQuery,
{"xquery", "Show Xapian query (for debugging)"}
},
{ Format::MQuery,
{"mquery", "Show mu query for (for debugging)"}
},
}};
sub.add_flag("--threads,-t", opts.find.threads,
@ -351,6 +345,8 @@ sub_find(CLI::App& sub, Options& opts)
"Show only one of messages with same message-id");
sub.add_flag("--include-related,-r", opts.find.include_related,
"Include related messages in results");
sub.add_flag("--analyze,-a", opts.find.analyze,
"Analyze the query");
const auto fhelp = options_help(FormatInfos, Format::Plain);
const auto fmap = options_map(FormatInfos);