search
The ODict search
command indexes the provided dictionary (if an index does not already exist) and performs a full-text search on its definitions and headwords using bleve. For now, search
only prints out a JSON result.
Usage
odict search [flags] [dictionary path] [search term]
Flags
Name | Alias | Description | Required? | Default |
---|---|---|---|---|
--index | -i | Re-indexes the dictionary | ❌ | false |
--exact | -e | Search only headwords (works the same as lookup) | ❌ | false |
Example
odict search -i ./eng.odict "a person of interest"