Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchPostings ¶
SearchPostings searches for p in a sorted slice of Postings and returns the index as specified by sort.Search.
Types ¶
type Doc ¶
type Doc struct {
Text []byte
}
func (*Doc) MarshalBinary ¶
func (*Doc) UnmarshalBinary ¶
type FTSIndex ¶
type FTSIndex struct {
// contains filtered or unexported fields
}
func NewFTSIndex ¶
func NewFTSIndex() *FTSIndex
type Normalizer ¶
func NewSimpleNormalizer ¶
func NewSimpleNormalizer() Normalizer
type SimpleTokenReader ¶
type SimpleTokenReader struct {
// contains filtered or unexported fields
}
func (*SimpleTokenReader) ReadToken ¶
func (r *SimpleTokenReader) ReadToken() (tok []byte, err error)
type TokenReader ¶
func SimpleTokenizer ¶
func SimpleTokenizer(r io.Reader) TokenReader
type Tokenizer ¶
type Tokenizer func(io.Reader) TokenReader
Source Files ¶
Click to show internal directories.
Click to hide internal directories.