search

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Unlicense Imports: 39 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func End

func End()

End closes the search index; it's safe to call multiple times (bleve panics on double close)

func Init

func Init() error

func ShouldShowReindexButton

func ShouldShowReindexButton() bool

ShouldShowReindexButton returns true if reindex button should be shown (if anything has changed we should show it)

func StreamingReindexHTML

func StreamingReindexHTML(w http.ResponseWriter, r *http.Request)

func UpdateLanguagesChange

func UpdateLanguagesChange() error

UpdateLanguagesChange updates the timestamp when languages are changed

func UpdateReindex

func UpdateReindex() error

UpdateReindex updates the timestamp when reindex is called

func UpdateSearchOn

func UpdateSearchOn() error

UpdateSearchOn updates the timestamp when search is turned on

Types

type SearchStats

type SearchStats struct {
	LastSearchOn        time.Time `json:"last_search_on"`
	LastReindex         time.Time `json:"last_reindex"`
	LastLanguagesChange time.Time `json:"last_languages_change"`
	DocumentCount       int64     `json:"-"`
}

SearchStats holds timestamps for various search-related operations

func GetStats

func GetStats() (*SearchStats, error)

GetStats returns the current search statistics, including the current document count

Jump to

Keyboard shortcuts

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