ftse

package
v0.0.0-...-a77e882 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Fulltext Search engine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir interface {
	PutTrack(path Path, keys []string, doc []byte)
	DelTrack(path Path)
	DelAll(domain string)
	Lookup(keys []string, max int) []Result
}

type FTSI

type FTSI struct {
	Dir
}

func (*FTSI) Publish

func (f *FTSI) Publish(tok c2s.Srv_Token, doc bson.Document)

func (*FTSI) Query

func (f *FTSI) Query(tok c2s.Srv_Token, terms bson.Document, max int) bson.Document

func (*FTSI) Retract

func (f *FTSI) Retract(tok c2s.Srv_Token, doc bson.Document)

func (*FTSI) RetractAll

func (f *FTSI) RetractAll(tok c2s.Srv_Token)

type MemDir

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

func (*MemDir) DelAll

func (m *MemDir) DelAll(domain string)

func (*MemDir) DelTrack

func (m *MemDir) DelTrack(path Path)

func (*MemDir) Lookup

func (m *MemDir) Lookup(keys []string, max int) []Result

func (*MemDir) PutTrack

func (m *MemDir) PutTrack(path Path, keys []string, doc []byte)

type MemDir64

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

MemDir but with 64 bit roaring bitmaps.

func (*MemDir64) DelAll

func (m *MemDir64) DelAll(domain string)

func (*MemDir64) DelTrack

func (m *MemDir64) DelTrack(path Path)

func (*MemDir64) Lookup

func (m *MemDir64) Lookup(keys []string, max int) []Result

func (*MemDir64) PutTrack

func (m *MemDir64) PutTrack(path Path, keys []string, doc []byte)

type Path

type Path [3]string

func (*Path) CreateMeta

func (p *Path) CreateMeta() bson.Document

type Result

type Result struct {
	Path Path
	Meta bson.Document
}

func (*Result) GetMeta

func (r *Result) GetMeta() bson.Document

Jump to

Keyboard shortcuts

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