index

package
v0.0.0-...-725ffc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package index is the endive subpackage that implements the Indexer interface.

Index

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) Count

func (i *Index) Count() uint64

Count the number of indexed GenericBooks.

func (*Index) Query

func (i *Index) Query(queryString string) (resultsPaths []string, err error)

Query on current Index

func (*Index) Rebuild

func (i *Index) Rebuild(all e.Collection) error

Rebuild for all GenericBooks

func (*Index) SetPath

func (i *Index) SetPath(path string)

SetPath for Index

func (*Index) Update

func (i *Index) Update(newB e.Collection, modB e.Collection, delB e.Collection) (err error)

Update existing index

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL