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

NameAliasDescriptionRequired?Default
--index-iRe-indexes the dictionaryfalse
--exact-eSearch only headwords (works the same as lookup)false

Example

odict search -i ./eng.odict "a person of interest"