Documentation ¶
Overview ¶
Package index is the endive subpackage that implements the Indexer interface.
Index ¶
- type Index
- func (i *Index) Check(all e.Collection) error
- func (i *Index) Count() uint64
- func (i *Index) Query(queryString string) (resultsPaths []string, err error)
- func (i *Index) Rebuild(all e.Collection) error
- func (i *Index) SetPath(path string)
- func (i *Index) Update(newB e.Collection, modB e.Collection, delB e.Collection) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
Path string
}
Index implements Indexer
func (*Index) Check ¶
func (i *Index) Check(all e.Collection) error
Check all GenericBooks are indexed, add them otherwise
func (*Index) Rebuild ¶
func (i *Index) Rebuild(all e.Collection) error
Rebuild for all GenericBooks
func (*Index) Update ¶
func (i *Index) Update(newB e.Collection, modB e.Collection, delB e.Collection) (err error)
Update existing index
Click to show internal directories.
Click to hide internal directories.