Documentation ¶
Index ¶
- type Indexer
- func (i *Indexer) Add(values ...map[string]string) error
- func (i *Indexer) AddSynonym(word string, synonym string) error
- func (i *Indexer) BeginRebuild() error
- func (i *Indexer) Clean() error
- func (i *Indexer) Close()
- func (i *Indexer) Connect() error
- func (i *Indexer) DelSynonym(word string, synonym string) error
- func (i *Indexer) Delete(ids ...string) error
- func (i *Indexer) EndRebuild() error
- func (i *Indexer) FlushIndex() error
- func (i *Indexer) FlushLogging() error
- func (i *Indexer) GetScwsMulti() (int, error)
- func (i *Indexer) LoadConf(setting *xs.Setting)
- func (i *Indexer) SetScwsMulti(level uint8) error
- func (i *Indexer) StopRebuild() error
- func (i *Indexer) Update(value map[string]string) error
- type Pool
- type Result
- type Searcher
- func (s *Searcher) Close()
- func (s *Searcher) Connect() error
- func (s *Searcher) GetAllSynonyms(stemmed bool) map[string][]string
- func (s *Searcher) GetExpandedQuery(keyword string, size uint8) ([]string, error)
- func (s *Searcher) GetSynonyms(word string) []string
- func (s *Searcher) LoadConf(setting *xs.Setting, pool *Pool)
- func (s *Searcher) Query(keyword string, args ...uint32) (*Result, error)
- func (s *Searcher) SetAutoSynonyms()
- func (s *Searcher) SetFuzzy(fuzzy bool)
- func (s *Searcher) Terms(keyword string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func (*Indexer) BeginRebuild ¶
func (*Indexer) EndRebuild ¶
func (*Indexer) FlushIndex ¶
func (*Indexer) FlushLogging ¶
func (*Indexer) GetScwsMulti ¶
func (*Indexer) SetScwsMulti ¶
func (*Indexer) StopRebuild ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) Release ¶
func (p *Pool) Release(r *xs.Connection)
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
func (*Searcher) GetAllSynonyms ¶
func (*Searcher) GetExpandedQuery ¶
func (*Searcher) GetSynonyms ¶
func (*Searcher) SetAutoSynonyms ¶
func (s *Searcher) SetAutoSynonyms()
Click to show internal directories.
Click to hide internal directories.