Documentation ¶
Overview ¶
Package for translation memory search
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
Encapsulates translation memory searcher
func NewSearcher ¶
Initialize SQL statement
func (*Searcher) DatabaseInitialized ¶ added in v0.0.15
Returns the word senses with English approximate or Pinyin exact match
func (Searcher) Search ¶
func (searcher Searcher) Search(ctx context.Context, query string, domain string, includeSubstrings bool, wdict map[string]dicttypes.Word) (*Results, error)
Searches the translation memory for approximate matches. Parameters
ctx Request context query The search query domain The domain to restrict the query to (optional) wdict The full dictionary
Retuns
A slice of approximate results
Click to show internal directories.
Click to hide internal directories.