Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Main *bleve.BleveBackend
)
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.