bleve

package
v0.0.0-...-ee7e7c1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string) (*bleveIndexer, error)

New creates a new instance for this indexer

Types

type Record

type Record struct {
	// contains filtered or unexported fields
}

Record handles indexer's data

func (*Record) Body

func (r *Record) Body() []byte

Body returns Record's body

func (*Record) FullPath

func (r *Record) FullPath() string

FullPath returns Record's fullpath

func (*Record) Ignore

func (r *Record) Ignore()

Ignore flag this record as ignored

func (*Record) Ignored

func (r *Record) Ignored() bool

Ignored returns if this record is ignored

func (*Record) Indexed

func (r *Record) Indexed() time.Time

Indexed returns the indexing time (if indexed)

func (*Record) Load

func (r *Record) Load() bool

Load this record from the indexer.

func (*Record) Modified

func (r *Record) Modified() time.Time

Modified returns Record's Modified

func (*Record) Path

func (r *Record) Path() string

Path returns Record's path

func (*Record) SetBody

func (r *Record) SetBody(body []byte)

SetBody replaces the actual body

func (*Record) SetFullPath

func (r *Record) SetFullPath(fp string)

SetFullPath defines a new fullpath for the record

func (*Record) SetIndexed

func (r *Record) SetIndexed(index time.Time)

SetIndexed define the time that this record has been indexed

func (*Record) SetModified

func (r *Record) SetModified(mod time.Time)

SetModified defines new modification time for this record

func (*Record) SetTitle

func (r *Record) SetTitle(title string)

SetTitle replaces Record's title

func (*Record) Title

func (r *Record) Title() string

Title returns Record's title

func (*Record) Write

func (r *Record) Write(p []byte) (int, error)

Write is the writing method for a Record

Jump to

Keyboard shortcuts

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