Documentation ¶
Index ¶
- func All() map[string]*Index
- func Create(name string, defaultLang string, mapping models.IndexMapping) error
- func Drop(name string) error
- func Load(basePath string) error
- type Index
- func (ix *Index) Batch(idField string, items []map[string]any) error
- func (ix *Index) DeleteDocument(id string) error
- func (ix *Index) GetDocument(id string) (any, error)
- func (ix *Index) GetStats() map[string]any
- func (ix *Index) IndexDocument(id string, doc any) error
- func (ix *Index) Search(req *models.SearchReq) ([]any, uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) DeleteDocument ¶
Click to show internal directories.
Click to hide internal directories.