Repository navigation
v.1.6.0 Feat&refactor: Multi-Field Search, Segments, and Benchmarks #26
dariasmyr
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Release Highlights
This release significantly expands
fts-enginefrom a simpler legacy full-text engine into a more complete Go search library with multi-field search, richer query execution, explicit persistence modes, built-in diagnostics, and a dedicated benchmark suite.New
Expanded search API
fts-enginenow supports a broader set of search patterns:SearchPlainText(...)SearchFieldClauses(...)For applications that need stronger control than raw query strings, programmatic query ASTs are also available.
Multi-field indexing and search
The library now supports multi-field services through
fts.NewMultiField(...).This enables:
Single-field mode still exists, but is now more clearly defined around the
_defaultfield.Ranking and execution improvements
This release adds score-based ranking with:
BM25TF-IDFIt also improves query execution for more advanced workloads, including optimized boolean/scored search paths and improved handling of top-k retrieval.
Diagnostics and observability
Search diagnostics are now available as an opt-in per-request feature.
Consumers can inspect:
For aggregated observability across many requests, the new
pkg/ftsstatspackage provides reusable search statistics collection.Highlighting
The engine now includes query-aware highlighting utilities for both:
This makes it easier to render snippets or marked fragments in client UIs and demos.
Persistence overhaul
Persistence has been reworked into a more explicit public API in
pkg/ftspersist.Two persistence modes are now documented and supported:
snapshot: saves and restores a mutable servicesegment: saves and restores a sealed read-only serviceAdditional improvements include:
pkg/segmentmmapsupport for segment loadingThis makes the difference between mutable restore flows and read-only optimized restore flows much clearer.
Separate benchmark suite
A new standalone benchmark subproject has been added under
benchmarks/.It provides cross-engine comparisons for:
fts-enginebleveblugeSupported datasets:
syntheticfor deterministic throughput/latency runsmsmarcofor realistic natural-language quality evaluationwiki-typedfor typed query-class benchmarking on real dataThe suite also adds:
The current documented baseline is:
-concurrency=1fts-engine -persist=snapshotThe older benchmark path in the repository still exists, but
benchmarks/is now the newer benchmark layer.Changed
Clearer public surface
The README now explicitly positions the main consumer-facing packages as:
pkg/ftspkg/index/slicedradixpkg/index/hamtpkg/keygenpkg/ftspersistpkg/segmentpkg/textprocpkg/ftspresetpkg/filterpkg/ftsstatsRepository-local tooling such as
cmd/*,internal/*, andbenchmarks/*is documented separately from the main library API.Updated examples and docs
Examples were refreshed to match the new search and persistence flows, including:
Documentation now better reflects the intended usage model for both library consumers and repository tooling users.
Removed / Breaking Changes
pkg/index/radixandpkg/index/hamtpointeredwere removed.fts.New(...)should now be treated as a_default-field single-field service.fts.NewMultiField(...).pkg/ftspersistover older persistence entry points.Migration Notes
If you are upgrading from the
masterbaseline:fts.Document-based APIfts.NewMultiField(...)if your documents contain multiple searchable fieldspkg/ftspersistThis discussion was created from the release v.1.6.0 Feat&refactor: Multi-Field Search, Segments, and Benchmarks.
All reactions