search

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package search combines fuzzy name search with full-text description search

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedSearch

func CombinedSearch(query string, projects []model.Project, historyScores map[string]int, cacheDir string) ([]index.CombinedMatch, error)

CombinedSearch performs unified search using Bleve across project names, paths, and descriptions For empty queries, returns all projects sorted by history If descIndex is provided, it will be used; otherwise a new index will be opened

func CombinedSearchWithIndex

func CombinedSearchWithIndex(query string, projects []model.Project, historyScores map[string]int, cacheDir string, descIndex *index.DescriptionIndex) ([]index.CombinedMatch, error)

CombinedSearchWithIndex is like CombinedSearch but accepts an already-open index

Types

This section is empty.

Jump to

Keyboard shortcuts

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