search

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchQuery

type SearchQuery struct {
	Query      string   // Search term
	Categories []string // Filter by categories (empty = all)
	MaxResults int      // Maximum results to return (0 = unlimited)
}

SearchQuery represents a search request

type SearchResult

type SearchResult struct {
	Entry     types.IndexEntry // The matched index entry
	Score     float64          // Relevance score
	MatchType string           // Type of match (filename, summary, tag, topic, document_type)
}

SearchResult represents a single search result

type Searcher

type Searcher struct {
	// contains filtered or unexported fields
}

Searcher performs semantic search over an index

func NewSearcher

func NewSearcher(index *types.Index) *Searcher

NewSearcher creates a new searcher for the given index

func (*Searcher) Search

func (s *Searcher) Search(query SearchQuery) []SearchResult

Search performs a semantic search and returns ranked results

Jump to

Keyboard shortcuts

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