Road to a stable release
Where Bielu.BetterSearch stands and how it gets to 1.0.0. The repository stays in changesets pre mode (1.0.0-beta.N) until the exit criteria are met. The release itself is tracked in #168.
Where it stands
The shared layer is in place: provider options are validated at startup and name the failing setting (#105), indexes are routed to keyed providers by name (#100, #122), an opt-in search result cache sits over the services (#119), and GetDocumentAsync, CountAsync and UpdateDocumentAsync exist on every interface (#99). Facets (#20), highlighting (#21), zero-downtime rebuilds and an index name prefix (#22), OpenTelemetry spans and metrics, logging and health checks (#103), a client settings callback with request timeouts and retries (#149), several nodes of a cluster (#150), and API key, bearer and TLS settings (#151) are done where the engines support them.
What follows is a summary per provider. The feature matrix is the record, with every caveat; where the two disagree, the matrix wins and this page is out of date.
- Elasticsearch runs every query type, paging up to
MaxResultWindow, sorting, post filters, term, multi-term and filter facets nested inside each other, and highlighting. Term and prefix queries match analyzed tokens, raw Lucene queries need thefields.prefix, and spatial queries need a field mapped asGeoPointinMappings. It implements get, count and update, field mappings,WriteVisibility,IndexPrefixand rebuilds through one atomic aliases request, several nodes with aPoolType, and basic, API key and bearer authentication with certificate fingerprint and skip-validation settings. - OpenSearch does the same as Elasticsearch, except that it has no bearer authentication and its API key needs OpenSearch 3.x. The
Bielu.BetterSearch.OpenSearch.Awspackage signs requests with AWS SigV4 for Amazon OpenSearch Service and Serverless (#152). - Meilisearch runs every query type its filters can express. Fuzzy queries and highlighting return a failed
Result, raw Lucene queries are parsed with Lucene.NET'sQueryParserand translated into one filter, spatial queries needMeilisearchOptions.GeoField, long ranges compare as doubles, and only top-level term facets run. It implements get, count,IndexPrefixand update, which reads the document and stores it again whole. Rebuilds return a failedResult, and it takes oneConnectionStringwith an API key. - Typesense runs every query type its filters can express. Fuzzy, raw Lucene and string range queries, a
MUSTNOTrange, prefix or spatial query, facets and highlighting return a failedResult; a page holds at most 250 hits and a sort at most 3 fields; spatial queries needTypesenseOptions.GeoField. Since #146 it implements get, count and update (which reads the document first), and since #147IndexPrefixand rebuilds through collection aliases, under a single-writer contract; the first rebuild of a plain collection deletes it before creating the alias, so searches in between fail. It takesAdditionalNodes, tried in order, and an API key. - PostgreSQL (#110) runs every query type except raw Lucene, which returns a failed
Result, as SQL conditions on an index stored as a table. Fuzzy queries need thefuzzystrmatchextension, every hit has the score 1, and facets and highlighting return a failedResult. It implements get, count and update, which merges the named fields in one statement, and each write commits before it returns. It has noIndexPrefixsetting, rebuilds return a failedResult, and it takes aConnectionStringor a registeredNpgsqlDataSource, on PostgreSQL 16 or later. - Lifti (in memory) ignores
Fieldon every query type, has no range, spatial or raw Lucene queries, ignores paging and sorting, has no post filters, facets or highlighting, returns only ids and scores on hits, and fails get, update and rebuilds. It is the weakest provider and the subject of #107.
Nothing has shipped as stable, so breaking changes are still free. The 1.0 blockers below use that window, because it closes at 1.0.
Known defects
| Area | Behavior | Expected | Tracked in |
|---|---|---|---|
| Lifti query | Field is ignored: Name=jane also matches City=Jane |
Only that field | #107 |
| Lifti index | CreateIndexAsync on an existing index silently replaces it, losing its documents |
Success with false, as on the other providers |
#107 |
| Lifti search | Searching or counting in a missing index creates it and returns no hits | A failed Result, as on the other providers, without creating the index |
#107 |
| Lifti search | Page and PageSize are ignored; hits contain only an id and a score |
Paged hits with fields | #107 |
Blockers for 1.0
The work for 1.0, in the order #168 and the stacking comments on each issue give. Items marked stack N are one stack of pull requests, each based on the branch of the one before it and merged from the bottom up, as AGENTS.md describes.
- #97 Remove dead and placeholder public API, the Typesense public types included. Stack 1. Done (#172).
- #165 The observer surface: removed.
IIndexingServiceAsyncandISearchServiceAsyncare no longerIObservable<>orIDisposable, which also ends the defect of observers seeing only their own DI scope. Code that needs a hook decorates the service in DI, as the search cache does; a singleton hook can be added after 1.0 without a break. Stack 2. Done (#173). - #96 Rename the misspelled public API (
DepedencyInjection,Occurance,PrefixLenght,Fuzinessand others). Stack 3, based onmainnow that stacks 1 and 2 are merged. - #163 Query model: one source of truth for occurrence, consistent clause containers and value types. Stack 4.
- #164 Unify the document and result shapes. Stack 5.
- #166 Make the default interface members abstract. Stack 6.
- #167 Clear the nullable warnings, then turn on
PublicApiAnalyzersandCS1591. Stack 7, once the breaking changes above have settled the shape of the API. - #94 Full-text match query (analyzed text, several fields, phrase). Elasticsearch, OpenSearch and PostgreSQL support every shape; on Meilisearch and Typesense, which take one search text per request, at most one match clause at the top level under
MUSTorFILTERis supported, and any other shape returns a failedResultnaming the limit. Stack 8. It comes afterPublicApiAnalyzersis on, so it adds its new public API to the tracked API files. - #101 Cursor-based paging past the result window:
search_afterwith a point in time on Elasticsearch and OpenSearch, keyset paging on PostgreSQL, and Typesense where its API allows; a cursor request returns a failedResulton Meilisearch (namingmaxTotalHits) and on Lifti. Stack 9. - #107 A
Bielu.BetterSearch.Luceneprovider on Lucene.NET, written against the final API. It ships as stable with the Lucene.NET 4.8 prerelease dependency as a written-down exception (NoWarnfor NU5104 in that project only). Lifti is deprecated for one release once it lands, then removed. Stack 10. - #106 Vector and hybrid search: a decision only. Open decision.
Open decisions
These are not made yet. Until they are, nothing here or in the docs should be read as deciding them.
- Vector and hybrid search (#106): whether they are in scope for 1.0.
The match query (#94), cursor paging (#101) and the Lucene.NET provider (#107) are decided; their decisions are in the issues and summarized in the blockers above.
Background for #107
Lucene.NET 4.8 is still labelled beta, so a stable package depending on it gets NuGet warning NU5104. The Meilisearch provider already has that dependency, through Lucene.Net.QueryParser 4.8.0-beta00018, which it uses to translate raw Lucene queries; Core and Abstractions don't.
Lifti is not archived, but its last release was v7.0.2 in December 2025, and the only activity since is one maintainer's unmerged V8 PR from May 2026.
| Option | Notes |
|---|---|
| Lucene.NET | Apache project, actively developed, release in June 2026. Elasticsearch is built on Lucene, so query semantics match. Native term, prefix, fuzzy, range, boolean, filter and raw query support, with facet, highlighter and spatial packages. RAMDirectory keeps an index in memory, and FSDirectory on disk. Still labelled beta |
| Lifti | Slowing, and has no ranges, filters or geo |
| LunrCore | Builds an immutable index, so it can't take incremental updates |
| SQLite FTS5 | No fuzzy search, and needs its own query translation |
| Writing our own | Far more work than this project needs to own |
A spike on .NET 10 with Lucene.NET 4.8.0-beta00018 ran term, prefix, fuzzy, numeric range, string range, MUST + MUST_NOT, MUST + SHOULD, filter context, raw query syntax and delete-then-search in memory, all with the expected results. The facet, highlighter and spatial packages were restored but not exercised.
Deferred until after 1.0
These are additive, so they can ship in a minor release:
- #98 Typed documents: map POCOs to and from
SearchDocument. - #29 Extract shared provider logic.
- #28 An Algolia provider.
- #108 An Azure AI Search provider.
Exit criteria for 1.0
Each of these can be checked:
- Every ⚠️ and ❌ in the feature matrix is pinned by a shared
BaseTeststest or a provider test, and every ✅ by a shared test. - No
NotImplementedExceptionon a public path. - No compiler or analyzer warnings in shipping projects.
- The public API is tracked by
PublicApiAnalyzersand documented (CS1591on). - 70%+ line coverage on library code.
- No stable package depends on a prerelease package, or the exception is written down here.
- Every engine's integration tests pass against the AppHost images.
Release steps
- Put the blockers on a
1.0milestone. - Merge the blockers, then check the exit criteria.
- Publish a release candidate while still in pre mode:
npx changeset pre exit, thennpx changeset pre enter rcin the same pull request, so the Version Packages PR publishes1.0.0-rc.N. Apre exiton its own makes the next Version Packages PR clearVersionSuffixand publish 1.0 stable. - At least one real consumer runs the release candidate.
- Release 1.0:
npx changeset pre exit, and merge the Version Packages PR it produces.