service

package
v0.0.0-...-b8a6b6b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentRanker

type DocumentRanker interface {
	SortDocumentByScore(ctx context.Context, query string, docs []*entities.Document) ([]*entities.Document, *errors.Error)
}

type Indexer

type Indexer interface {
	IndexingDocument(ctx context.Context, document *entities.DocumentCreate) *errors.Error
}

type InvertIndexCompresser

type InvertIndexCompresser interface {
	Compress(ctx context.Context, invertIndexes *entities.InvertIndex) (*entities.InvertIndexCompressed, *errors.Error)
	Decompress(ctx context.Context, invertIndexes *entities.InvertIndexCompressed) (*entities.InvertIndex, *errors.Error)
}

type Searcher

type Searcher interface {
	Search(ctx context.Context, query *entities.Query) ([]*entities.Document, *errors.Error)
}

type Tokenizer

type Tokenizer interface {
	Tokenize(ctx context.Context, content string) (*[]entities.TermCreate, *errors.Error)
}

Jump to

Keyboard shortcuts

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