lucy

package
v0.0.0-...-ccf6fc8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOLUCY_DefDocReader_Fetch_Doc

func GOLUCY_DefDocReader_Fetch_Doc(ddr *C.lucy_DefaultDocReader,
	docID C.int32_t) *C.lucy_HitDoc

func GOLUCY_Doc_Deserialize

func GOLUCY_Doc_Deserialize(d *C.lucy_Doc, instream *C.lucy_InStream) *C.lucy_Doc

func GOLUCY_Doc_Destroy

func GOLUCY_Doc_Destroy(d *C.lucy_Doc)

func GOLUCY_Doc_Equals

func GOLUCY_Doc_Equals(d *C.lucy_Doc, other *C.cfish_Obj) C.bool

func GOLUCY_Doc_Extract

func GOLUCY_Doc_Extract(d *C.lucy_Doc, field *C.cfish_String) *C.cfish_Obj

func GOLUCY_Doc_Field_Names

func GOLUCY_Doc_Field_Names(d *C.lucy_Doc) *C.cfish_Vector

func GOLUCY_Doc_Get_Size

func GOLUCY_Doc_Get_Size(d *C.lucy_Doc) C.uint32_t

func GOLUCY_Doc_Serialize

func GOLUCY_Doc_Serialize(d *C.lucy_Doc, outstream *C.lucy_OutStream)

func GOLUCY_Doc_Set_Fields

func GOLUCY_Doc_Set_Fields(d *C.lucy_Doc, fields unsafe.Pointer)

func GOLUCY_Doc_Store

func GOLUCY_Doc_Store(d *C.lucy_Doc, field *C.cfish_String, value *C.cfish_Obj)

func GOLUCY_Doc_init

func GOLUCY_Doc_init(d *C.lucy_Doc, fields unsafe.Pointer, docID C.int32_t) *C.lucy_Doc

func GOLUCY_Inverter_Invert_Doc

func GOLUCY_Inverter_Invert_Doc(inverter *C.lucy_Inverter, doc *C.lucy_Doc)

func GOLUCY_RegexTokenizer_Destroy

func GOLUCY_RegexTokenizer_Destroy(rt *C.lucy_RegexTokenizer)

func GOLUCY_RegexTokenizer_Tokenize_Utf8

func GOLUCY_RegexTokenizer_Tokenize_Utf8(rt *C.lucy_RegexTokenizer, str *C.char,
	stringLen C.size_t, inversion *C.lucy_Inversion)

func GOLUCY_RegexTokenizer_init

func GOLUCY_RegexTokenizer_init(rt *C.lucy_RegexTokenizer, pattern *C.cfish_String) *C.lucy_RegexTokenizer

Types

type DirHandleIMP

type DirHandleIMP struct {
	clownfish.ObjIMP
	// contains filtered or unexported fields
}

func (*DirHandleIMP) Close

func (dh *DirHandleIMP) Close() error

func (*DirHandleIMP) Error

func (dh *DirHandleIMP) Error() error

type HitsIMP

type HitsIMP struct {
	clownfish.ObjIMP
	// contains filtered or unexported fields
}

func (*HitsIMP) Error

func (obj *HitsIMP) Error() error

func (*HitsIMP) Next

func (h *HitsIMP) Next(hit interface{}) bool

type IndexerIMP

type IndexerIMP struct {
	clownfish.ObjIMP
	// contains filtered or unexported fields
}

func (*IndexerIMP) AddDoc

func (obj *IndexerIMP) AddDoc(doc interface{}) error

func (*IndexerIMP) AddIndex

func (obj *IndexerIMP) AddIndex(index interface{}) error

func (*IndexerIMP) Close

func (obj *IndexerIMP) Close() error

func (*IndexerIMP) Commit

func (obj *IndexerIMP) Commit() error

func (*IndexerIMP) DeleteByDocID

func (obj *IndexerIMP) DeleteByDocID(docID int32) error

func (*IndexerIMP) DeleteByQuery

func (obj *IndexerIMP) DeleteByQuery(query Query) error

func (*IndexerIMP) DeleteByTerm

func (obj *IndexerIMP) DeleteByTerm(field string, term interface{}) error

func (*IndexerIMP) PrepareCommit

func (obj *IndexerIMP) PrepareCommit() error

type MatcherIMP

type MatcherIMP struct {
	clownfish.ObjIMP
	// contains filtered or unexported fields
}

func (*MatcherIMP) Error

func (m *MatcherIMP) Error() error

func (*MatcherIMP) Next

func (m *MatcherIMP) Next() int32

type OpenIndexerArgs

type OpenIndexerArgs struct {
	Schema   Schema
	Index    interface{}
	Manager  IndexManager
	Create   bool
	Truncate bool
}

type SimpleIMP

type SimpleIMP struct {
	clownfish.ObjIMP
	// contains filtered or unexported fields
}

func (*SimpleIMP) AddDoc

func (s *SimpleIMP) AddDoc(doc interface{}) error

func (*SimpleIMP) Error

func (s *SimpleIMP) Error() error

func (*SimpleIMP) Next

func (s *SimpleIMP) Next(hit interface{}) bool

func (*SimpleIMP) Search

func (s *SimpleIMP) Search(query string, offset, numWanted int, sortSpec SortSpec) (totalHits int, err error)

Jump to

Keyboard shortcuts

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