Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serialize ¶
func Serialize(index *Index) (*pb_almanac.BleveIndex, error)
Serialize returns a proto with the contents of the supplied index.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index wraps a bleve index and presents a serializable interface.
func Deserialize ¶
func Deserialize(proto *pb_almanac.BleveIndex) (*Index, error)
Deserialize returns an instance of indexService which has loaded the supplied index proto.
func NewIndex ¶
NewIndex returns an instance of index backed by an temporary location on disk. The caller is responsible for eventually calling Close() on the returned index.
func (*Index) Close ¶
Close releases any resources held by this instance. No other methods must be called after this.
Click to show internal directories.
Click to hide internal directories.