populate

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIndex

func BuildIndex(ctx context.Context, db *sql.DB, limit int) (int, error)

func IndexDocument added in v0.3.0

func IndexDocument(ctx context.Context, db *sql.DB, doc types.UrlDbEntity) error

Index (or reindex) an individual document. If doc.Id is already present in the search index it will be overwritten.

func PopulateAll

func PopulateAll(extractor types.Extractor) error

PopulateAll populates all records from browsers, ignoring the last updated time

func PopulateFulltext added in v0.3.0

func PopulateFulltext(ctx context.Context, db *sql.DB) (int, error)

func PopulateSinceTime

func PopulateSinceTime(extractor types.Extractor, since time.Time, opts *PopulateOptions) error

func ReindexAll

func ReindexAll(ctx context.Context, db *sql.DB) (int, error)

Reindex documents that have already been indexed. This does not remove anything from the index, but will overwrite documents that have been updated.

func ReindexWithLimit added in v0.3.0

func ReindexWithLimit(ctx context.Context, db *sql.DB, limit int) (int, error)

Types

type PopulateOptions added in v0.4.1

type PopulateOptions struct {
	KeepTmpFiles bool
}

Jump to

Keyboard shortcuts

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