index

package
v0.0.0-...-4e448a7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIndex

func BuildIndex()

each term as a bucket, for seek speedup, and save doc together

func QueryDocByTerm

func QueryDocByTerm(term string, start []byte, limit int) ([]*doc.Doc, error)

func QueryFieldByTerm

func QueryFieldByTerm(term string) ([]string, error)

func QueryFieldByTerms

func QueryFieldByTerms(terms []string) ([]string, error)

func SearchField

func SearchField(q, start string, limit int) ([]string, error)

func SearchFieldValue

func SearchFieldValue(f, q, start string, limit int) ([]string, error)

Types

type Offset

type Offset struct {
	Bucket   []byte
	Position []byte
}

func QueryDocByTerms

func QueryDocByTerms(terms []string, start *Offset, limit int) ([]*doc.Doc, *Offset, error)

func QueryFieldValueByTerms

func QueryFieldValueByTerms(terms []string, start *Offset, limit int, f, q string) ([]string, *Offset, error)

Jump to

Keyboard shortcuts

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