Documentation ¶
Index ¶
- func BuildIndex(ctx context.Context, db *sql.DB, limit int) (int, error)
- func IndexDocument(ctx context.Context, db *sql.DB, doc types.UrlDbEntity) error
- func PopulateAll(extractor types.Extractor) error
- func PopulateFulltext(ctx context.Context, db *sql.DB) (int, error)
- func PopulateSinceTime(extractor types.Extractor, since time.Time, opts *PopulateOptions) error
- func ReindexAll(ctx context.Context, db *sql.DB) (int, error)
- func ReindexWithLimit(ctx context.Context, db *sql.DB, limit int) (int, error)
- type PopulateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexDocument ¶ added in v0.3.0
Index (or reindex) an individual document. If doc.Id is already present in the search index it will be overwritten.
func PopulateAll ¶
PopulateAll populates all records from browsers, ignoring the last updated time
func PopulateFulltext ¶ added in v0.3.0
func PopulateSinceTime ¶
func ReindexAll ¶
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 PopulateOptions ¶ added in v0.4.1
type PopulateOptions struct {
KeepTmpFiles bool
}
Click to show internal directories.
Click to hide internal directories.