Documentation
¶
Index ¶
Constants ¶
View Source
const (
IndexFileName = "search-index.json"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractText ¶
func FormatResult ¶
func NormalizeQuery ¶
Types ¶
type EventSummary ¶
type Hit ¶
type Hit struct {
Session sessions.Metadata `json:"session"`
Event EventSummary `json:"event"`
Context string `json:"context"`
Match Match `json:"match"`
}
type Index ¶
type Index struct {
SchemaVersion int `json:"schemaVersion"`
SessionID string `json:"sessionId"`
SessionUpdatedAt string `json:"sessionUpdatedAt"`
SessionEventCount int `json:"sessionEventCount"`
GeneratedAt string `json:"generatedAt"`
Entries []IndexEntry `json:"entries"`
}
type IndexEntry ¶
type LoadOptions ¶
type Result ¶
type Result struct {
Query string `json:"query"`
NormalizedQuery string `json:"normalizedQuery"`
RootDir string `json:"rootDir"`
SearchedSessions int `json:"searchedSessions"`
// SkippedSessions counts sessions whose event log could not be read or
// indexed; they are skipped so one corrupt session can't abort the search.
SkippedSessions int `json:"skippedSessions,omitempty"`
TotalHits int `json:"totalHits"`
Hits []Hit `json:"hits"`
}
func RedactResult ¶
Click to show internal directories.
Click to hide internal directories.