Documentation
¶
Index ¶
- Constants
- type IndexDocument
- type Search
- func (s *Search) Close()
- func (s *Search) Delete(dbName, col, id string) error
- func (s *Search) Index(dbName, col, id, text string) error
- func (s *Search) IndexFields(dbName, col, id string, fields map[string]string) error
- func (s *Search) PublishIndex(dbName, col, id, text string) error
- func (s *Search) Search(dbName, col, keywords string) (SearchResult, error)
- type SearchResult
Constants ¶
View Source
const (
ChannelIndexEvent = "sys-fts"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexDocument ¶
type IndexDocument struct {
ID string `json:"id"`
DBName string `json:"dbname"`
Key string `json:"key"`
Text string `json:"text"`
Fields map[string]string `json:"fields,omitempty"`
}
func (IndexDocument) Type ¶ added in v1.7.0
func (IndexDocument) Type() string
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
func (*Search) IndexFields ¶ added in v1.7.0
func (*Search) PublishIndex ¶ added in v1.7.0
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.