Go search took worst BM25 hits (ORDER BY score), cut to -n before --root, and never called ensureDaemon. Ranking and flag parsing move to a cgo-free package so CI can fail those regressions without ladybug. --hop errors instead of being swallowed into the query.
15 lines
312 B
Go
15 lines
312 B
Go
// Common types and helpers for kbsearch.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/eSlider/2dph/bin/kbsearch/rank"
|
|
)
|
|
|
|
func eps() string { return os.Getenv("KBTEST_EPS") }
|
|
|
|
// Hit is the search hit type; ranking lives in package rank so CI can test
|
|
// it without the native ladybug library.
|
|
type Hit = rank.Hit
|