Skip to content

Commit 4741a42

Browse files
committed
docs: add NOT operator examples to km examples
Show how to exclude terms with NOT and standalone NOT queries.
1 parent 6933d5a commit 4741a42

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Main/CLI/Commands/ExamplesCommand.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ private void ShowSearchExamples()
139139
AnsiConsole.MarkupLine("[dim]Find documents with either python or javascript[/]");
140140
AnsiConsole.WriteLine();
141141

142+
AnsiConsole.MarkupLine("[bold]Exclude terms with NOT[/]");
143+
AnsiConsole.MarkupLine("[cyan]km search \"docker AND NOT kubernetes\"[/]");
144+
AnsiConsole.MarkupLine("[dim]Find docker docs that don't mention kubernetes[/]");
145+
AnsiConsole.MarkupLine("[cyan]km search \"NOT deprecated\"[/]");
146+
AnsiConsole.MarkupLine("[dim]Find all docs that don't contain \"deprecated\"[/]");
147+
AnsiConsole.WriteLine();
148+
142149
AnsiConsole.MarkupLine("[bold]Search for literal reserved words[/]");
143150
AnsiConsole.MarkupLine("[cyan]km search '\"NOT\"'[/]");
144151
AnsiConsole.MarkupLine("[dim]Use quotes to search for literal AND, OR, NOT as words[/]");

0 commit comments

Comments
 (0)