Versions in this module Expand all Collapse all v0 v0.4.0 Jun 13, 2026 Changes in this version + type IndexStats struct + IndexPath string + IndexedAt string + StorageSize int64 + TotalDocs uint64 + type IndexedNode struct + AllText string + Doc string + ID string + Label string + Module string + Package string + Signature string + SourceFile string + Type string + type SearchOptions struct + FuzzyDist int + Highlight bool + Limit int + NodeTypes []string + Offset int + type SearchOutput struct + Facets map[string]any + IndexStats *IndexStats + MaxScore float64 + Query string + Results []*SearchResult + Took string + TotalHits uint64 + Truncated bool + type SearchResult struct + Fragments []string + ID string + Label string + Package string + Score float64 + Snippet string + SourceFile string + Type string + type Searcher struct + func NewSearcher(graphPath string) (*Searcher, error) + func (s *Searcher) Close() error + func (s *Searcher) IndexNodes(nodes []*graph.Node) error + func (s *Searcher) Reindex(nodes []*graph.Node) error + func (s *Searcher) Search(queryStr string, opts SearchOptions) (*SearchOutput, error) + func (s *Searcher) Stats() (*IndexStats, error)