tldr-node-client
tldr-node-client copied to clipboard
Search for "editor" does not find page "nano"
Expected behavior
When I execute the command tldr --search editor, then the result list should contain the entry "nano", because the text of this page contains the word "editor".
First sentence on this page contains word "editor" (see here for full text of page):
Simple, easy to use command-line text editor.
Actual behavior
The list of search results does NOT contain "nano":
$ tldr --search editor
Searching for: editor
$ sensible-editor
$ qcp
$ lambo
$ gh-config
$ fc
$ qmv
$ pueue-edit
$ micro
$ git-authors
$ helix
The cause for this issue might be that in page "nano" the word "editor" is at the end of an sentence (i.e. "editor."), and therefore the tokenizer for indexing all pages does not recognize this word.
Might be related to issue 193.
Environment
- Operating system: Linux (Raspbian 10)
- Node.js version: 12.22.7
- tldr-node-client: 3.3.7