index

package
v0.0.0-...-043ee8f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id string)

func Index

func Index(id string, content interface{})

func Init

func Init(allDocs GetAllDocsFn)
func Search(q string) (*bleve.SearchResult, error)

Types

type Document

type Document interface {
	Id() string
	Content() interface{}
}

type FragmentFormatterEx

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

func NewFragmentFormatterEx

func NewFragmentFormatterEx(before, after string) *FragmentFormatterEx

func (*FragmentFormatterEx) Format

func (a *FragmentFormatterEx) Format(f *highlight.Fragment, orderedTermLocations highlight.TermLocations) string

type GetAllDocsFn

type GetAllDocsFn func() <-chan Document

Jump to

Keyboard shortcuts

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