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 {
File types.FileEntry // The matched file 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.GraphIndex) *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
Click to show internal directories.
Click to hide internal directories.