[#760] cli: Support `COMMON_PREFIX` matchtype

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
support/v0.27
Pavel Karpy 2021-08-20 07:18:59 +03:00 committed by Alex Vanin
parent 4ff98a7e2b
commit 9b32b5523d
1 changed files with 3 additions and 2 deletions

View File

@ -509,8 +509,9 @@ var searchUnaryOpVocabulary = map[string]object.SearchMatchType{
}
var searchBinaryOpVocabulary = map[string]object.SearchMatchType{
"EQ": object.MatchStringEqual,
"NE": object.MatchStringNotEqual,
"EQ": object.MatchStringEqual,
"NE": object.MatchStringNotEqual,
"COMMON_PREFIX": object.MatchCommonPrefix,
}
func parseSearchFilters(cmd *cobra.Command) (object.SearchFilters, error) {