query

package
v0.0.0-...-56c857f Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(term string) string

This function normalizes a single term. It should be applied to the terms inserted into the index but also to the words inside the query

Types

type QueryEngine

type QueryEngine struct {
	IndexStore    store.IndexStore
	DocumentStore store.DocumentStore
}

func (*QueryEngine) Find

func (e *QueryEngine) Find(text string, number int) (*QueryResult, error)

type QueryResult

type QueryResult struct {
	Documents []*model.Document
	TotalDocs int64
}

Jump to

Keyboard shortcuts

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