populate

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 14 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) (int, error)

func GetIndex

func GetIndex() (*bleve.Index, error)

func PopulateAll

func PopulateAll(extractor types.Extractor) error

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

func PopulateSinceTime

func PopulateSinceTime(extractor types.Extractor, since time.Time) 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.

Types

type SearchableEntity

type SearchableEntity struct {
	Id          string     `json:"id"`
	Url         string     `json:"url"`
	Title       *string    `json:"title"`
	Description *string    `json:"description"`
	LastVisit   *time.Time `json:"last_visit"`
}

Jump to

Keyboard shortcuts

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