search

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Unlicense Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func End

func End()

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