BetterSearch Provider Feature Matrix
What each provider really does today. This is a beta: see roadmap for the plan.
✅ works · ⚠️ works with the caveat noted · ❌ not available
Elasticsearch and OpenSearch documents are stored with their values under fields, so a query on Name searches fields.Name. Metadata fields such as _id and _score pass through unchanged; any other name, including one starting with _ such as _tags, is a document field. A query missing a value it needs, such as Field, returns a failed Result.
Elasticsearch and OpenSearch create indexes with dynamic mapping, which makes a string a text field with a keyword sub-field, unless it looks like a date, which date detection maps as date with no sub-field. SharedIndexSettings.Mappings and each Indexes entry's Mappings map fields explicitly (Text, Keyword, Date, the numeric types, Boolean or GeoPoint, with an optional Analyzer or Format); fields not listed keep dynamic mapping, and invalid mappings fail at startup. A Keyword field matches and sorts on its whole value under its plain name. A Text field matches one token of its analyzer in TermQuery and TermsQuery, which with the default analyzer is one word, as on every provider, and sorts on its keyword sub-field automatically. See the Elasticsearch page.
Query values that are not strings are turned into text the same way on every machine: booleans in lower case (true), numbers with the invariant culture, so a query sends 3.5, not 3,5, on a machine running under a culture such as pl-PL, and dates in ISO 8601 as UTC. A DateTime with Kind.Local and a DateTimeOffset are converted to UTC, a DateTime with Kind.Unspecified is taken as UTC, fractional seconds are written only when they are not zero (2026-11-08T13:05:00Z, 2026-11-08T13:05:00.123Z), and a DateOnly is 2026-11-08. Elasticsearch, OpenSearch and Meilisearch also store date field values as that text, so a date comes back from a search in UTC and a Term, Terms or Prefix query with a date value on a keyword field (Born.keyword) matches the stored date. A text field holds the date split into words by its analyzer, so query the keyword field for a whole date. On a field Elasticsearch or OpenSearch mapped as a date, which dynamic mapping does for these strings, they reject a Prefix or PrefixPhrase query. Documents indexed before this version keep the text the client wrote then (no Z for an unspecified date, the offset for a local one), so re-index them. Lifti also indexes field values that way and splits text into words at punctuation and spaces, so a decimal such as 3.5 is indexed as the words 3 and 5, and a date as its parts (2026, 11, 08T13, 05 and 00Z). It splits a Term, Terms, Fuzzy, Prefix or PrefixPhrase value with the same tokenizer and matches the words next to each other, in order, so a whole decimal, date or exponent (1E-07) matches the value it was indexed from, a Fuzzy 3.5 does not match 35, and a single part of a date (2026) still matches too. A Prefix value ending with punctuation or a space (3.) matches its last word whole, followed by any word, so 3. matches 3.5 but not 35 or 3; that following word can be the next value of a multi-valued field. Words from different values of a multi-valued field are never next to each other, so 3.5 does not match ["3", "5"]. A value with no words, such as null, "" or -, returns a failed Result, and so does a Terms query with such a value in its list; a Terms query whose list is null or empty succeeds with no hits.
Meilisearch queries run as filters, which compare whole values, so the provider also stores each text field's words lower-cased (tokens), the word runs a phrase prefix can start at (phrases, up to 16 words, for every field or only those in MeilisearchOptions.PhraseFields) and each date as Unix milliseconds (dates). A query on Name filters those copies; a query on fields.Name compares the value as given, as Name.keyword does on Elasticsearch. Words split on anything that is not a letter or digit. A field name can only contain letters, digits, _, - and .; any other returns a failed Result. When MeilisearchOptions.GeoField is set, the provider also copies that field's point to _geo, and indexing a document whose point is not valid returns a failed Result. Documents indexed before this version have no copies, so re-index them.
Query types
| Feature | Elasticsearch | OpenSearch | Meilisearch | Typesense | PostgreSQL | Lifti |
|---|---|---|---|---|---|---|
| BoolQuery (nested boolean logic) | ✅ | ✅ | ✅ | ⚠️ see boolean semantics | ✅ AND, OR and NOT in SQL, with Lucene semantics |
⚠️ see boolean semantics |
| TermQuery (exact term match) | ⚠️ matches one analyzed token, ignoring ASCII case only (Żółw does not match żółw); use Field.keyword for the whole value |
⚠️ matches one analyzed token, ignoring ASCII case only (Żółw does not match żółw); use Field.keyword for the whole value |
⚠️ a string matches one word, ignoring case (Żółw matches żółw); fields.Name matches the whole value, also ignoring case (WARSAW matches Warsaw), as Meilisearch compares every string that way, unlike Name.keyword; a string that reads as a number or boolean ("30", "true") also matches that value; numbers, booleans and dates match the value, on fields.Name too; a NaN or infinite number returns a failed Result |
⚠️ as Meilisearch: a string matches one word, ignoring case; fields.Name matches the whole value, ignoring case; a string that reads as a number or boolean also matches that value; a field no document has matches nothing; a value holding a backtick, or a NaN or infinite number, returns a failed Result |
⚠️ a string matches one word of the field's string values, as TextSearchConfiguration splits them (lower-cased, with no stemming, under simple, the default); a string the configuration splits into several words matches nothing; a string that reads as a number or boolean also matches that value; a number matches an equal number (3 matches 3.0), integers exactly at any size; a date matches the stored ISO 8601 text |
⚠️ field ignored; a value of several words matches them next to each other, in order |
| TermsQuery (multiple exact terms) | ⚠️ one terms query: a string matches as given or lower-cased (so Warsaw matches the token warsaw but not a WARSAW keyword); an empty list matches nothing; more than 65,536 terms after the lower-cased copies (index.max_terms_count) returns a failed Result |
⚠️ one terms query: a string matches as given or lower-cased (so Warsaw matches the token warsaw but not a WARSAW keyword); an empty list matches nothing; more than 65,536 terms after the lower-cased copies (index.max_terms_count) returns a failed Result |
⚠️ any value, each as TermQuery, sent as one IN per attribute; an empty list matches nothing; a NaN or infinite number returns a failed Result |
⚠️ any value, each as TermQuery, sent as one :=[...] per stored field; an empty list matches nothing |
⚠️ any value, each as TermQuery, sent as two array parameters whatever the number of values; an empty list matches nothing | ⚠️ field ignored; a value of several words matches them next to each other, in order |
| FuzzySubQuery | ⚠️ at most 2 edits; AUTO when MaxEdits is unset; the value goes through the field's analyzer and every token must match; a value that is not a string or a number (a date, a boolean) returns a failed Result |
⚠️ at most 2 edits; AUTO when MaxEdits is unset; the value goes through the field's analyzer and every token must match; a value that is not a string or a number (a date, a boolean) returns a failed Result |
❌ returns a failed Result: filters only match exact values, and typo tolerance applies to the whole search text, not one field |
❌ returns a failed Result: filters only match exact values, and typo tolerance applies to the search text |
⚠️ needs the fuzzystrmatch extension in the database, and returns a failed Result naming it otherwise; Levenshtein distance between words, so a transposition counts as two edits; at most 2 edits, AUTO when MaxEdits is unset; every word of the value must match; a value that is not a string or a number returns a failed Result |
⚠️ field ignored; 2 edits for every term when MaxEdits is unset, not AUTO, and an explicit MaxEdits is used as given, with no limit of 2; a date or boolean matches the words of its text, as indexed |
| PrefixQuery | ⚠️ ignores ASCII case only, as TermQuery; on a numeric or date field Elasticsearch rejects the query and the search returns a failed Result |
⚠️ ignores ASCII case only, as TermQuery; on a numeric or date field OpenSearch rejects the query and the search returns a failed Result |
⚠️ a word starting with the value, ignoring case; a value that is not a string (a number, say) returns a failed Result |
⚠️ a word starting with the value, ignoring case; fields.Name matches a whole value starting with it; a value that is not a string returns a failed Result |
⚠️ a word starting with the value, normalized as the words are; a value of several words matches nothing | ⚠️ field ignored; the value's words in order, the last as a prefix; a value ending with punctuation or a space (3.) matches its last word whole, followed by any word, which can be the next value of a multi-valued field |
| PrefixPhraseQuery | ⚠️ on a numeric or date field Elasticsearch rejects the query and the search returns a failed Result |
⚠️ on a numeric or date field OpenSearch rejects the query and the search returns a failed Result |
⚠️ the value's words in order, the last as a prefix, at most 16 words; a value that is not a string returns a failed Result; with MeilisearchOptions.PhraseFields set, only on those fields, and any other returns a failed Result; after adding a field to PhraseFields, re-index, or older documents never match a phrase prefix on it |
⚠️ the value's words in order, the last as a prefix, at most 16 words; a value that is not a string returns a failed Result |
⚠️ the value's words in order and next to each other, the last as a prefix | ⚠️ field ignored; the value's words in order, the last as a prefix |
| LuceneQuery (raw Lucene syntax) | ⚠️ field names need the fields. prefix |
⚠️ field names need the fields. prefix |
⚠️ parsed with Lucene.NET's QueryParser and translated into one filter. Field names work with or without the fields. prefix, and either way a term matches as TermQuery does on the field's words, never as the whole value. Terms, a trailing * prefix, ranges (bounds that read as numbers or ISO 8601 dates also compare numbers or dates; a date without a time rounds as on Elasticsearch: up to the end of the day for an included maximum or an excluded minimum), _exists_:f, f:*, AND, OR, NOT, + and - translate exactly. Two kinds translate only approximately, and the result carries a TranslationWarning: a fuzzy term (jane~) matches the exact word, and a quoted phrase of 2 to 16 words ("jane doe", "jane-doe") matches a run of words starting with it while the field also holds its last word anywhere, as Meilisearch trims the trailing space a filter would need to end the run there. A quoted single word ("jane") is a term: exact, with no warning and no PhraseFields check. A term without a field, an unquoted term that splits into several words (Name:foo-bar; Name:(jane doe) is two terms joined with OR, and translates), an empty phrase (""), proximity ("a b"~2), boosts (^2), regular expressions, any other wildcard and parentheses nested more than 32 deep return a failed Result; so does a phrase of several words on a field outside MeilisearchOptions.PhraseFields |
❌ returns a failed Result |
❌ returns a failed Result |
❌ |
| DateRangeSubQuery | ✅ | ✅ | ✅ | ✅ compares Unix milliseconds | ✅ compares the instants of string values that start with an ISO 8601 date; a value without an offset is UTC | ❌ |
| NumericRangeSubQuery | ✅ | ✅ | ✅ | ⚠️ integers compare exactly; other numbers as Typesense floats, about seven significant digits |
✅ a single value must be within both bounds | ❌ |
| LongRangeSubQuery | ✅ | ✅ | ⚠️ Meilisearch compares numbers as doubles, so values past 2^53 lose precision | ✅ compared as int64, so values past 2^53 keep their precision |
✅ compared exactly, so values past 2^53 keep their precision | ❌ |
| StringRangeSubQuery | ⚠️ compares analyzed tokens to the bounds as given, so bounds are case-sensitive ("A"–"Z" misses the token jane); use Field.keyword for whole values |
⚠️ compares analyzed tokens to the bounds as given, so bounds are case-sensitive ("A"–"Z" misses the token jane); use Field.keyword for whole values |
⚠️ compares lower-cased words, and one word must lie inside the range, as on Elasticsearch; use fields.Name for whole values, which compare ignoring case |
❌ returns a failed Result: Typesense filters compare strings only for equality and prefixes |
⚠️ compares whole string values by their UTF-8 bytes (the C collation), so B sorts before a |
❌ |
| SpatialSearchSubQuery | ⚠️ the field must be mapped as GeoPoint in Mappings; dynamic mapping doesn't create one |
⚠️ the field must be mapped as GeoPoint in Mappings; dynamic mapping doesn't create one |
⚠️ only on the field named by MeilisearchOptions.GeoField, as Meilisearch filters by distance on one _geo attribute; that field holds one point, a "lat,lon" string or a dictionary with lat and lon, and the provider copies it to _geo; unset, a failed Result |
⚠️ only on the field named by TypesenseOptions.GeoField, stored as a geopoint; unset, a failed Result |
⚠️ haversine distance on any field holding "lat,lon" strings or objects with lat and lon (or lng), with no extension needed; no index serves it, so every document holding the field is checked |
❌ |
Typesense queries run as filters too, and a Typesense collection has a schema, so the provider creates each collection with one field pattern per kind of value and stores, for a field Name, a JSON copy of every field for results (source), the words lower-cased (t_Name), each string whole (s_Name), the word runs a phrase prefix can start at (p_Name), integers as int64 (i_Name), other numbers as Typesense floats (n_Name), dates as Unix milliseconds (d_Name), booleans (b_Name), the point of TypesenseOptions.GeoField (g_Name) and, for a field holding one value, a sortable copy. Typesense fails a filter on a field no document has, so a search reads the collection's fields (trusted for TypesenseOptions.SchemaCheckInterval, and read again for a field not in the list once the list is a second old, or at once after a write through the provider) and treats such a comparison as matching nothing. A field name can only contain letters, digits and _. See the Typesense page.
A clause's occurrence is kept on the sub-query only (ISearchSubQuery.Occurrence). Query, PostFilterQuery, a bool's NestedQueries, a FilterAggregationQuery's Queries and a highlight request's Queries are all flat lists of clauses, each combined by its own occurrence, so a top-level query reads the same as a bool. Every sub-query starts as Occurrence.Must, so one put in a list directly, or by a collection initializer, is a Must clause unless its Occurrence says otherwise; Add(occurrence, subQuery) sets the occurrence on the sub-query and appends it, and throws ArgumentNullException for a null sub-query. A shared test (ClauseOccurrenceTestBase) checks on every provider that two Should clauses match the same documents at the top level and inside a bool, added through Add and through an initializer; FacetsTestBase and HighlightingTestBase check that clauses added through Add to a filter facet and to a highlight request's own Queries keep their occurrence, on the providers that support those. BoostValue is a double, 1 by default, so a boost of 0.5 or 1.5 can be set; Elasticsearch and OpenSearch send it, and the other providers, which don't score by it, ignore it. Elasticsearch and OpenSearch hold a boost as a 32-bit float, so on those two a positive boost outside its range (1e100, which would become infinity, or 1e-100, which would become 0) returns a failed Result naming BoostValue, for a clause at any depth. SpatialSearchSubQuery.UnitOfDistance is a DistanceUnit (kilometres by default; also metres, centimetres, millimetres, miles, yards, feet, inches and nautical miles), and a value outside the enum returns a failed Result on every provider that supports the query. Properties is empty by default, which returns every field, as null does. Both edges of a range (IncludeMinEdge, IncludeMaxEdge) are inclusive by default, on the model and in the fluent API's WithMinValue and WithMaxValue, so a range from 25 to 30 matches 25 and 30; set an edge to false to exclude it. A DateRangeSubQuery, NumericRangeSubQuery, LongRangeSubQuery or StringRangeSubQuery with neither MinValue nor MaxValue returns a failed Result on every provider, Lifti included, with the same message (NumericRangeSubQuery has neither MinValue nor MaxValue; set at least one bound.), rather than matching every document that has the field. A Lucene range with no bounds (Age:[* TO *]) is not affected. NumericRangeSubQuery holds double? bounds, so a range can be fractional (9.99 to 49.5); a bound is not rounded, so at least 4.5 matches the whole number 5 and not 4, and a NaN or infinite bound returns a failed Result on every provider (NumericRangeSubQuery has a bound that is not a finite number; use a finite MinValue and MaxValue.). Use LongRangeSubQuery for whole numbers that need precision above 2^53. A DateRangeSubQuery bound is a DateRangeValue, which a DateTime or a DateTimeOffset converts to implicitly, and compares instants on every provider: a DateTimeOffset keeps its instant whatever its offset, a DateTime with Kind.Local is converted to UTC, and one with Kind.Unspecified is read as UTC, never as the machine's or the server's time zone. Shared tests check a fractional range with values just inside and just outside each bound, a fractional bound on whole numbers, and dates and bounds written with different offsets, on Elasticsearch, OpenSearch and Meilisearch, and that Lifti fails them.
Boolean semantics
| Feature | Elasticsearch | OpenSearch | Meilisearch | Typesense | PostgreSQL | Lifti |
|---|---|---|---|---|---|---|
| Must | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Should | ✅ Lucene semantics: alongside Must or Filter, only adds to the score |
✅ Lucene semantics: alongside Must or Filter, only adds to the score |
✅ Lucene semantics: alongside Must or Filter, it changes nothing |
✅ Lucene semantics: alongside Must or Filter, it changes nothing |
✅ Lucene semantics: alongside Must or Filter, it changes nothing |
✅ Lucene semantics: alongside Must, it changes nothing |
| MustNot | ✅ on its own, returns the complement | ✅ on its own, returns the complement | ✅ on its own, returns the complement | ⚠️ on its own, returns the complement; Typesense has no NOT for an expression, so the provider pushes negations down to the comparisons, and a MustNot range, prefix or spatial query returns a failed Result |
✅ on its own, returns the complement | ⚠️ a nested bool with only MustNot clauses excludes from its parent's matches; a query whose matches would be every document except the exclusions (no positive clause, or Should beside a Must that only excludes) returns a failed Result, as Lifti has no query for every document |
| Filter | ✅ matches without scoring | ✅ matches without scoring | ✅ same as Must, as nothing is scored |
✅ same as Must, as nothing is scored |
✅ same as Must, as nothing is scored |
⚠️ treated as Must, so it still scores |
Search features
| Feature | Elasticsearch | OpenSearch | Meilisearch | Typesense | PostgreSQL | Lifti |
|---|---|---|---|---|---|---|
Pagination (Page, PageSize) |
✅ Page counts from 1; PageSize defaults to 10; a page past MaxResultWindow (10,000 by default, matching index.max_result_window) returns a failed Result |
✅ Page counts from 1; PageSize defaults to 10; a page past MaxResultWindow (10,000 by default, matching index.max_result_window) returns a failed Result |
✅ as Elasticsearch; the limit is MeilisearchOptions.MaxTotalHits (10,000 by default), which the provider sets as each index's pagination.maxTotalHits |
⚠️ Page counts from 1; PageSize defaults to 10; a PageSize above 250 returns a failed Result |
✅ LIMIT and OFFSET; Page counts from 1; PageSize defaults to 10; no limit on how deep a page can be |
❌ ignored, all hits are returned |
| Sorting | ⚠️ a field mapped as Text in Mappings sorts on its keyword sub-field under its plain name, case-sensitively, by its lowest value when ascending, and a value over 256 characters as missing; sort an unmapped text field on Field.keyword, as Elasticsearch rejects sorting on a text field |
⚠️ as Elasticsearch | ✅ by the stored value; without SortOrder hits come in Meilisearch's order |
⚠️ at most 3 fields; by the value of a field holding one number, date or string; a field holding several values or a boolean in every document, or an integer or date in some documents and a fractional number type in others, returns a failed Result; without SortOrder hits come in Typesense's order |
⚠️ by the field's numbers, then its dates, then its strings by their UTF-8 bytes; by its lowest value ascending and its highest descending; documents without the field last; ties by id | ❌ ignored, hits stay in score order |
| Facets / aggregations | ✅ term (terms), multi-term (multi_terms) and filter (filter) facets, nested inside each other; counted over the main query's matches, so a post filter doesn't change them; a field mapped as Text is counted on its keyword sub-field, and an unmapped text field returns a failed Result saying to map it or facet on Field.keyword; see Facets |
✅ as Elasticsearch | ⚠️ top-level term facets only; a multi-term, filter or nested facet returns a failed Result; a facet whose field has as many values as the index's maxValuesPerFacet (100 by default) or more returns a failed Result; with a post filter the counts come from a second search without it |
❌ a query with facets returns a failed Result |
❌ not implemented yet; a query with facets returns a failed Result |
❌ returns a failed Result |
| Highlighting | ✅ fragments on each hit in Highlights, keyed by field name, terms marked with <em> and the text HTML-escaped; one field or every field (IsAllField); a request's own Queries mark their terms instead of the main query's; a multi-valued field returns only the values that matched; a hit with nothing marked has no entries; see the provider page |
✅ as Elasticsearch; see the provider page | ❌ returns a failed Result: Meilisearch marks only matches of the search text, and the provider runs queries as filters with no search text |
❌ returns a failed Result: the provider runs queries as filters with no search text |
❌ not implemented yet; returns a failed Result |
❌ returns a failed Result: the index keeps no document text to mark |
| Post filters | ✅ | ✅ | ✅ combined with the query for the hits; facets are counted by a second search without the post filter | ✅ combined with the query, which returns the same hits as facets are unsupported | ✅ combined with the query, which returns the same hits as facets are unsupported | ❌ |
| Stored fields on hits | ✅ Document is a SearchDocument, the shape GetDocumentAsync returns: the fields in Fields, the id unchanged in Id, the type in Type and the query's index in Index; the hit holds Score; Properties limits the fields. Values keep their JSON types: numbers written without a fraction (int, long) come back as long, other numbers (a double, even 3.0) as double, dates as ISO 8601 strings, booleans as bool; a field stored as null comes back as an empty list and null values in a list are left out |
✅ Document is a SearchDocument, the shape GetDocumentAsync returns: the fields in Fields, the id unchanged in Id, the type in Type and the query's index in Index; the hit holds Score; Properties limits the fields. Values keep their JSON types: numbers written without a fraction (int, long) come back as long, other numbers (a double, even 3.0) as double, dates as ISO 8601 strings, booleans as bool; a field stored as null comes back as an empty list and null values in a list are left out |
✅ as Elasticsearch, except that every hit has the same Score, as filters don't rank |
✅ as Elasticsearch, from a JSON copy of the fields, except that every hit has the Score 1 |
✅ as Elasticsearch, from the row's jsonb, except that every hit has the Score 1 |
⚠️ hits only carry the document id, unchanged, the query's Index and Score; Type is "" and Fields is empty, so writing a hit back through IndexDocumentAsync replaces the indexed document with an empty one |
| Total hit count | ⚠️ exact up to MaxResultWindow matches (10,000 by default), then a lower bound |
⚠️ exact up to MaxResultWindow matches (10,000 by default), then a lower bound |
⚠️ exact up to MaxTotalHits matches (10,000 by default), then that number |
✅ exact | ✅ exact, counted in the same snapshot as the page | ✅ exact |
Count (CountAsync) |
✅ exact, through _count on the query and post filter; a missing index is a failed Result |
✅ as Elasticsearch | ✅ exact, through a filtered document fetch, so not capped at the index's maxTotalHits; a missing index is a failed Result with Meilisearch's code |
✅ exact, the found of a search for no hits (per_page 0) with the query and post filter; a missing index is a failed Result, as a search there |
✅ exact; a missing index is a failed Result |
⚠️ exact; a missing index is created and counts 0, as a search there |
Get a document by id (GetDocumentAsync) |
✅ GET _doc; the fields come back as on hits; a missing document or index is success with null |
✅ as Elasticsearch | ✅ the fields come back as on hits; a missing document or index is success with null |
✅ GET of the document; the fields come back as on hits; a missing document or index is success with null |
✅ the fields come back as on hits; a missing document or index is success with null |
❌ a failed Result: Lifti keeps no stored fields |
| Cancelling a search | ✅ throws OperationCanceledException, before validating the query when the token is already cancelled |
✅ throws OperationCanceledException, before validating the query when the token is already cancelled |
✅ throws OperationCanceledException, before validating the query when the token is already cancelled |
✅ throws OperationCanceledException, before validating the query when the token is already cancelled |
✅ throws OperationCanceledException, before validating the query when the token is already cancelled |
⚠️ throws OperationCanceledException when cancelled before the search starts, before validating the query; a running search runs to the end |
| Searching a missing index | ✅ a failed Result |
✅ a failed Result |
✅ a failed Result with Meilisearch's code |
✅ a failed Result |
✅ a failed Result |
⚠️ creates the index and returns no hits (the shared test is skipped on Lifti, and a Lifti test pins this) |
Culture filter (FilterByCulture) |
✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ field ignored, as TermQuery: a document holding the culture value in another field matches too (the shared test is skipped on Lifti, and a Lifti test pins the extra match) |
Search result cache (opt-in decorators over ISearchServiceAsync and IIndexingServiceAsync, see caching) |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ saves no network call, as Lifti is in memory, but skips running the query again |
The query model and fluent API can express sorting, facets, highlighting and post filters. Elasticsearch, OpenSearch, Meilisearch, Typesense and PostgreSQL apply sorting and post filters, Elasticsearch, OpenSearch and Meilisearch apply facets (Meilisearch only top-level term facets), and Elasticsearch and OpenSearch highlight; Lifti applies none of them and fails a query that asks for facets or highlighting.
Facets
Each entry in FacetQueries comes back in ISearchResult.Aggregations, in the same order, and RetrieveBucketAggregation(name) and RetrieveSingleAggregation(name) find one by its AggregationName, on the result or on a bucket's Aggregations. A TermAggregation or MultiTermAggregation gives a BucketAggregation with one KeyBucket per value or combination, the values with the most documents first; Size sets how many, 10 when it is 0 (TermAggregation.DefaultSize). A term bucket has the value in Key and in Keys; a multi-term bucket has every field's value in Keys and the engine's joined key (Red|acme) in Key. A FilterAggregationQuery gives a SingleAggregation with one SingleBucket holding the number of documents its Queries match. Nested facets are counted per bucket, in the bucket's Aggregations, which is the only place they are read from, a filter facet's included. Keys are text, a whole number in the invariant culture (5). Counts cover the main query's matches: a post filter narrows the hits but not the counts. Every provider returns a failed Result, before it asks the engine, for a null facet (FacetQueries holds a null entry.), a facet without an AggregationName, two facets of the same name at the same level, a term facet without a TermFieldName, a multi-term facet with fewer than two Terms, a Size below 0 or above 65,536 (Elasticsearch's default search.max_buckets), any other IAggregationQuery type, nested ones included, a facet nested inside itself, and nesting more than 16 levels deep; on Lifti every facet fails with its own message instead. The shared FacetsTestBase checks all of this on every provider.
SortOrderField is the ISortOrderField to put in SortOrder. Keys apply by Order, lowest first, and keys with the same Order keep their place in the list. Every provider, Lifti included, returns a failed Result for a null entry (SortOrder holds a null entry.) or an entry whose FieldName is null, empty or blank (A SortOrder entry needs a FieldName.), before it sends anything to the engine. The shared SortingTestBase checks both messages on every provider, and a two-key sort returning a fixed order on Elasticsearch, OpenSearch and Meilisearch; on Lifti it checks that the order is the one without SortOrder.
Index operations
| Feature | Elasticsearch | OpenSearch | Meilisearch | Typesense | PostgreSQL | Lifti |
|---|---|---|---|---|---|---|
| Create index | ✅ with the configured Mappings; false when the index already exists; any other rejection, such as an unknown analyzer, is a failed Result |
✅ as Elasticsearch | ⚠️ an existing index is success with false |
⚠️ creates the collection with the provider's schema; an existing one is success with false |
⚠️ creates the table and its GIN index in one transaction, and a schema other than public when it is missing; an existing table is success with false |
⚠️ silently replaces an existing index, losing its documents |
| Delete index | ✅ on an alias left by a rebuild, deletes the index behind it | ✅ as Elasticsearch | ✅ | ✅ on an alias left by a rebuild, deletes the collection behind it and the alias | ✅ a missing index is success with false |
✅ |
| Index exists | ✅ any answer other than 200 or 404, such as a 403, is a failed Result |
✅ any answer other than 200 or 404, such as a 403, is a failed Result |
✅ any error other than index_not_found, such as a wrong API key, is a failed Result |
✅ any answer other than 200 or 404, such as a 401, is a failed Result |
✅ any error, such as a refused login, is a failed Result |
✅ |
| Ensure index exists | ✅ true whether the index existed, was created, or was created by another caller first; adds the configured Mappings to an existing index, and a mapping that conflicts with the field's current one is a failed Result |
✅ as Elasticsearch | ✅ true whether the index existed, was created, or was created by another caller first |
✅ true whether the index existed, was created, or was created by another caller first |
✅ true whether the index existed, was created, or was created by another caller first |
✅ |
| Index document | ✅ | ✅ | ✅ Id can only contain letters, digits, - and _ |
✅ a field name can only contain letters, digits and _ |
✅ an index name can be at most 63 bytes, the longest name PostgreSQL keeps; a string can't hold the null character, which jsonb rejects |
✅ |
| Index multiple documents | ✅ bulk requests of up to BulkBatchSize documents (1000 by default) per index; Elasticsearch applies each document on its own, so rejected documents fail the Result, naming their ids, and the others are already stored |
✅ bulk requests of up to BulkBatchSize documents (1000 by default) per index; OpenSearch applies each document on its own, so rejected documents fail the Result, naming their ids, and the others are already stored |
✅ tasks of up to BulkBatchSize documents (1000 by default) per index, one after another; each task is applied or failed as a whole, and the first failure stops that index's import, so the tasks before it stay stored and the Result fails naming every id of that index not confirmed as stored: the failed task's (none stored, or on a TaskTimeout it may still index any or all of them) and the ones not sent; other indexes in the call are still written |
✅ import requests of up to 1000 documents per index, after every document is checked; Typesense applies each document on its own, so rejected documents fail the Result, naming their ids, and the others are already stored |
✅ one transaction per index, so a rejected document fails the Result, naming every id of that index, and none of them is stored |
✅ one AddRangeAsync per index, applied as one change, so a rejected document fails the Result, naming every id of that index, and stores none of them |
| Remove document | ✅ removing a document that is not there succeeds; a missing index is a failed Result |
✅ removing a document that is not there succeeds; a missing index is a failed Result |
✅ removing a document that is not there succeeds; a missing index is a failed Result |
✅ removing a document that is not there succeeds; a missing index is a failed Result |
✅ removing a document that is not there succeeds; a missing index is a failed Result |
⚠️ removing a document that is not there succeeds; a missing index also succeeds (indexes are in memory, so one is missing after a restart) and is not created |
| Remove multiple documents | ✅ one bulk request; an id that is not there is not counted; failed items fail the Result, naming their ids, and the other ids are already removed; a missing index is a failed Result |
✅ one bulk request; an id that is not there is not counted; failed items fail the Result, naming their ids, and the other ids are already removed; a missing index is a failed Result |
✅ one deletion task, applied or failed as a whole, so a failure names every id; a missing index is a failed Result; on a TaskTimeout the Result fails saying the task may still remove any or all of the ids |
✅ deletes by id filter, up to 100 ids per request and fewer for long ids; a failed request names the ids not yet removed, and earlier requests' documents are already removed; a missing index is a failed Result |
✅ one DELETE; an id that is not there is not counted; a missing index is a failed Result |
⚠️ removes the ids one by one; a missing index succeeds with 0 and is not created |
| Remove all documents | ✅ refreshes the index first, so writes not yet searchable are removed too; returns the removed count | ✅ refreshes the index first, as Elasticsearch; returns the removed count; a timed-out or partly failed delete is a failed Result |
✅ returns the removed count, or null when the task does not report one |
✅ truncates the collection and returns the removed count | ✅ deletes every row and returns the removed count | ✅ returns the removed count |
Index name prefix (IndexPrefix) |
✅ added to every index name the provider sends: indexing, search, get, count, update, removal, remove all, exists, create, delete and rebuilds; startup validation rejects a prefix Elasticsearch can't use | ✅ as Elasticsearch | ✅ added to every index uid the provider sends: indexing, search, get, count, update, removal, remove all, exists, create and delete; not checked at startup, although Meilisearch accepts only letters, digits, - and _ in a uid |
✅ added to every collection name the provider sends: indexing, search, get, count, update, removal, remove all, exists, create, delete and rebuilds; not restricted, as Typesense accepted every name tried (upper case, spaces, /, a leading -) |
➖ no setting yet | ➖ no setting, as indexes live in the process |
Zero-downtime rebuild (IIndexLifecycleServiceAsync) |
✅ a new index with the configured Mappings, then one atomic aliases request that points the index name at it and deletes the indexes it pointed at before; a rejected request leaves the alias where it was, and an unacknowledged one fails but may still apply; a complete and an abort of the same rebuild never both take effect |
✅ as Elasticsearch | ❌ a failed Result: the provider does not implement IIndexLifecycleProviderAsync (Meilisearch's swap-indexes is not used yet) |
⚠️ a new collection, then a collection alias named like the index is pointed at it and the collection it pointed at before is deleted, in separate requests; Typesense refuses an alias named like a collection, so the first rebuild of a plain collection deletes it before creating the alias, and searches in between fail; a complete also deletes every other rebuild collection of the index, found by name, so calling it again cleans up after one that stopped part way; single-writer contract: one rebuild of an index at a time and no two of its calls at once, as overlapping calls can leave an orphaned collection or a dangling alias | ❌ a failed Result: the provider does not implement IIndexLifecycleProviderAsync |
❌ a failed Result: the provider does not implement IIndexLifecycleProviderAsync |
Update some fields (UpdateDocumentAsync) |
✅ a partial _update, retried on a version conflict; false for a missing document or index, which creates neither; the index is checked first, as an update would create it |
✅ as Elasticsearch | ⚠️ reads the document and stores it again whole, so an update made by another caller in between is lost, and a document removed in between is stored again; false for a missing document or index |
⚠️ reads the document, then sends a Typesense partial update (an import with action=update) of the named fields' typed copies and of source, the JSON copy results come from, with those fields replaced; source is written whole, so an update of other fields made by another caller in between is lost from results while it stays searchable; false for a missing document or index, which creates neither, a document removed in between included |
✅ merges the named fields into the row in one statement; false for a missing document or index, which creates neither |
❌ a failed Result: Lifti keeps no stored fields to merge into |
| Persistence | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ in memory only, lost on restart |
| Several nodes of a cluster | ✅ AdditionalNodes beside ConnectionString, with PoolType Static, Sticky or Sniffing; a request that can't reach a node goes to the next one. Unset, one node uses a single node pool and several a static one. Not used with Cloud and CloudApi, which connect by the cloud id |
✅ as Elasticsearch | ❌ one ConnectionString |
✅ AdditionalNodes, tried in order; no PoolType |
➖ one connection string or NpgsqlDataSource; several hosts are set in the Npgsql connection string itself |
➖ in process |
| Write searchable on return | ⚠️ at the next refresh, about a second later, by default; ✅ with WriteVisibility: WaitUntilSearchable (refresh=wait_for, and refresh=true on remove all) |
⚠️ as Elasticsearch; ✅ as Elasticsearch with WriteVisibility: WaitUntilSearchable |
✅ the provider waits for the task | ✅ Typesense applies each write before it answers | ✅ each write commits before it returns | ✅ in memory, at once |
Setting SearchDocument.Fields to null, in code or by deserializing, gives an empty dictionary, so a document always has fields. IIndexingServiceAsync.IndexDocumentAsync returns a failed Result naming the fields whose value is null rather than a list, or naming the fields that hold a null value; use an empty list for a field with no values. IndexMultipleDocumentsAsync checks every document for null first, failing on a null entry too, and indexes none of them when one has a null. It then runs the validator on every document, and when it rejects one or fails, returns a failed Result with one error per such document, naming it and holding its id in the error's id metadata, and indexes none of them. Otherwise it passes the whole batch to the provider's IndexMultipleDocumentsAsync in one call, which writes each index's documents in one request on Lifti, and in requests of up to BulkBatchSize documents on Elasticsearch, OpenSearch and Meilisearch. What a document the engine rejects leaves stored differs per provider, as the table above says; the error names the ids that were not stored in its ids metadata, and says how many of that index's documents were indexed. Documents for several indexes are written index by index, so when one index fails the documents of another can already be stored. RemoveDocumentsAsync(index, ids) returns how many documents it removed, counting a repeated id once and not counting an id that is not there; an empty list succeeds with 0 without calling the engine, and a null list or a null or empty id is a failed Result that removes nothing. A failure message names up to 20 ids, and the error's ids metadata holds all of them. The providers' own IIndexingProviderAsync.IndexDocumentAsync does not check this and stores the document. A document stored with null fields, a null field or a null value, through a provider or by another writer, is still searchable on every provider; Elasticsearch, OpenSearch and Meilisearch map hits through the same code, so they return null fields as no fields, a null field as an empty list, leave null values out of a list and return the same CLR types for the same stored value, and Lifti returns only ids.
GetDocumentAsync(index, id), CountAsync(query) and UpdateDocumentAsync(index, id, fields) are default interface members of ISearchProviderAsync, ISearchServiceAsync, IIndexingProviderAsync and IIndexingServiceAsync, so a provider written before them still compiles and returns a failed Result naming itself. GetDocumentAsync returns null when the engine answers that the document or the whole index is not there, and a failed Result when it can't answer, such as on a 401 or 5xx; a null or empty id is a failed Result. CountAsync counts the documents SearchAsync would return for the same query, post filter included, and ignores Page, PageSize, SortOrder, Properties, HighlightQueries and FacetQueries. UpdateDocumentAsync replaces the values of each field it names and keeps the other fields, returning true when the document was updated and false when the document or index is missing; it creates neither, except that on Elasticsearch and OpenSearch an index deleted between the provider's index check and the update is created again by the engine, and on Meilisearch a document removed between the read and the write is stored again; on Meilisearch and Typesense an update reads the document first, so two updates of one document at once can lose one's changes. An update with no fields, a null field or a null value is a failed Result on every provider, and IIndexingServiceAsync.UpdateDocumentAsync does not run the document validator, which checks whole documents. The shared DocumentOperationsTestBase runs these on every provider: a get of a stored document, of a missing document and in a missing index, an exact count with a page that holds one hit, a count in a missing index, an update that changes one field and keeps the others, a date included, searchable, and an update of a missing document and in a missing index, which creates nothing; a Meilisearch test counts past an index maxTotalHits lowered below the count.
On Elasticsearch and OpenSearch, WriteVisibility in SharedIndexSettings or an Indexes entry decides when a successful write returns. Default returns once the write is stored, and a search sees it after the next index refresh, about a second later; WaitUntilSearchable adds refresh=wait_for to index, delete and bulk requests and refresh=true to the delete by query of RemoveAllDocumentsAsync, so the write is searchable when the call returns. Whatever the setting, RemoveAllDocumentsAsync refreshes the index before its delete by query, which would otherwise skip writes not refreshed yet, and a failed refresh is a failed Result that removes nothing. An Indexes entry without it takes the shared value. Each call can then wait up to the refresh interval, and IndexMultipleDocumentsAsync waits once for each bulk request of BulkBatchSize documents. Meilisearch, Typesense and Lifti have no such setting, as their writes are already searchable on return.
Elasticsearch, OpenSearch, Meilisearch, Typesense and PostgreSQL validate their options at startup (ValidateOnStart) and whenever they are read: the connection string and authentication of the shared settings and of each Indexes entry after merging, MaxResultWindow (Elasticsearch, OpenSearch) or MaxTotalHits (Meilisearch) greater than 0, on Elasticsearch and OpenSearch RequestTimeout greater than 0 and MaxRetries not negative, in SharedIndexSettings and each Indexes entry, on Meilisearch RequestTimeout greater than 0 there too, RequestTimeout at most 24.20:31:23.647 (int.MaxValue milliseconds, the longest the clients accept) on all four, TaskTimeout and SettingsCheckInterval not negative and GeoField and PhraseFields names it can filter on, on Typesense RequestTimeout and SchemaCheckInterval not negative, and on PostgreSQL that each connection string parses and names a host (a missing one is allowed when an NpgsqlDataSource is registered), that Schema fits in 63 bytes and that TextSearchConfiguration is a plain name; Elasticsearch and OpenSearch check each of AdditionalNodes and PoolType there too, a failure naming the node's position, such as AdditionalNodes:1; Typesense checks each of AdditionalNodes when it creates a client. The host fails to start with every failure listed, each naming its configuration path, and a missing section is one failure naming the section. After a reload to invalid settings, SearchAsync and the writes return a failed Result with the same messages. Lifti has no connection settings to check.
Each of the four engine providers takes a configureClient callback in its Add method, run on each client it creates after the options are applied, so the callback can set what the options don't cover and override what they do: the ElasticsearchClientSettings on Elasticsearch, the ConnectionSettings on OpenSearch, and the HttpClient on Meilisearch and Typesense. It runs once per cached client, not per request. RequestTimeout is an option on all four: per index on Elasticsearch, OpenSearch and Meilisearch, and for the whole provider on Typesense. MaxRetries is an option on Elasticsearch and OpenSearch only, the clients that have a retry count; Typesense moves to the next of AdditionalNodes instead. Clients are cached per connection, and the timeout and retry count are part of that key, so two indexes with different timeouts get two clients. PostgreSQL takes no configureClient callback: register an NpgsqlDataSource and leave ConnectionString empty to configure its connections. Lifti has no client to configure.
Meilisearch applies writes as tasks; the provider waits for each one, so a successful Result means the write was applied and a failed task returns Meilisearch's error with its code in the error's code metadata. If the wait times out (MeilisearchOptions.TaskTimeout, 30 seconds by default) the Result fails but the task is not cancelled, so the write may still be applied later; the error's taskUid metadata holds the task's uid. Writes also check the index's settings and, when something is missing, add the attributes the provider filters and sorts on and raise pagination.maxTotalHits to MaxTotalHits. Attributes added by others and a higher maxTotalHits are kept. A check is trusted for MeilisearchOptions.SettingsCheckInterval (5 seconds by default), so an index deleted elsewhere is fixed by the first write after that, and a higher MaxTotalHits by the next write.
| Feature | Elasticsearch | OpenSearch | Meilisearch | Typesense | PostgreSQL | Lifti |
|---|---|---|---|---|---|---|
| Basic authentication | ✅ Password |
✅ Password |
❌ | ❌ | ✅ Username and Password in the Npgsql connection string |
n/a |
| API key | ✅ ApiKey with ConnectionString, or CloudApi with a cloud id |
✅ ApiKey (OpenSearch 3.x) |
✅ ApiKey |
✅ ApiKey |
n/a | n/a |
| Bearer token | ✅ Bearer, such as a service account token |
❌ | ❌ | ❌ | ❌ | n/a |
| AWS SigV4 signing | ❌ | ✅ with the Bielu.BetterSearch.OpenSearch.Aws package, for Amazon OpenSearch Service (es) and Serverless (aoss); tested against a local endpoint, not a real AWS domain |
❌ | ❌ | ❌ | n/a |
Trust a certificate by fingerprint (CertificateFingerprint) |
✅ the certificate, or a CA it chains to through valid signatures, for a certificate the system does not trust; the host name is not checked then | ✅ the certificate, or a CA it chains to through valid signatures, for a certificate the system does not trust; the host name is not checked then | ❌ the system's trust only | ❌ the system's trust only | ➖ no setting; the TLS settings of the Npgsql connection string apply | n/a |
Skip certificate validation (DevelopmentOnlySkipCertificateValidation) |
✅ for development only | ✅ for development only | ❌ | ❌ | ➖ no setting; the TLS settings of the Npgsql connection string apply | n/a |
| Spans, metrics and logs | ✅ from SearchServiceAsync and IndexingServiceAsync |
✅ as Elasticsearch | ✅ as Elasticsearch | ✅ as Elasticsearch | ✅ as Elasticsearch | ✅ as Elasticsearch |
PingAsync / health check |
✅ HEAD / |
✅ HEAD / |
✅ GET /health, healthy when available |
✅ GET /health, healthy when "ok": true |
✅ SELECT 1 on a pooled connection |
⚠️ always succeeds, as there is no engine to reach |
Test coverage
Provider-agnostic bases live in BaseTests. Lifti runs all three (SubQueryTranslationTestBase, IndexingTestBase, QueryResultBaseTests), plus its own search tests running every supported query type, boolean combinations, paging, sorting, result mapping and error paths; the unsupported query types are checked to fail, and the known defects (ignored Field, ignored paging and sorting, id-only hits, CreateIndexAsync replacing an index, a search creating a missing index) are pinned as they behave today. Its culture tests index and query a decimal, a DateTime, a DateTimeOffset, a date prefix and exponents end to end, and check that a decimal matches neither 35 through a Fuzzy query nor its words held in separate values. Its indexing provider tests cover bulk indexing across indexes, a repeated id in one batch, a rejected document leaving its own index unchanged but not another, remove-all, index deletion, every write that needs an index failing when none can be created, and removing one or many documents failing when the index lookup fails (removing never creates an index), throwing when cancelled, removing from the index the client factory returns, and not recreating an index deleted between the lookup and the remove; removing one document also keeps a thrown exception as the cause. The nested and top-level boolean semantics are shared tests there, so every provider must agree on them. Elasticsearch runs all three against a real server, plus its own search tests running every query type except SpatialSearchSubQuery against it, with boolean combinations, paging, sorting, result mapping and error paths. OpenSearch runs the same three bases and the same search tests against a real OpenSearch 3.3 server, plus provider tests for bulk indexing, remove-all and configuration. Both run the same mapping tests against their server: a Keyword field matched and sorted under its plain name, a Text field sorted on its keyword sub-field (case, multi-valued, ignore_above and a field named fields), a sort on _score kept on relevance when a Text field is named _score, an unmapped field kept dynamic, SpatialSearchSubQuery on a GeoPoint field, a Date field with the format strict_date_optional_time||yyyy-MM-dd accepting a DateTime and a DateOnly and finding each through DateRangeSubQuery, the mapping applied by CreateIndexAsync and added by EnsureIndexExistsAsync, a conflicting mapping and an unknown analyzer failing, and invalid options failing startup validation. Meilisearch runs all three against a real server too, plus its own search tests running every supported query type, SpatialSearchSubQuery included, boolean combinations, paging, sorting, result mapping and error paths; the unsupported query types are checked to fail. FacetsTestBase runs on every provider: term counts and their order, Size, a numeric facet, two facets in query order, counts that follow the main query and ignore a post filter, a multi-term facet, a filter facet with a nested term facet, a term facet nested in a term facet, and the invalid facets; on Meilisearch the multi-term, filter and nested cases check the failure, and on Lifti, Typesense and PostgreSQL every case does. Elasticsearch and OpenSearch also check that a facet on an unmapped text field fails with the message saying how to fix it, and that one on its keyword sub-field counts whole values; Meilisearch checks that a facet with 100 values fails, and that one with 10 values fails on an index whose maxValuesPerFacet is 10. SearchableWritesTestBase runs on every provider, with Elasticsearch and OpenSearch set to WaitUntilSearchable: it indexes three documents one at a time, then two in a batch, removes one, then two, then all, and searches straight after each write, with no sleep and no manual refresh, for exactly the documents left. The QueryResultBaseTests cancel a search (also one whose query is invalid), check that searching a missing index returns a failed Result (skipped on Lifti, which creates the index), round-trip a mixed-case id, return a hit whose stored field is null, return a document whose Fields was set to null as one with no fields, and filter by culture through the fluent API on every provider; the culture test is skipped on Lifti, which ignores the field, and a Lifti test checks instead that the other cultures are left out and that the document holding the culture value in its title matches too. They also return stored strings, whole numbers, fractional and whole doubles (4.5 and 3.0) and booleans as string, long, double and bool on Elasticsearch, OpenSearch and Meilisearch; on Lifti, which returns only ids, that test checks the hit's id alone. They also return stored dates (an unspecified DateTime with milliseconds, a UTC DateTime, a DateTimeOffset with an offset and a DateOnly) as ISO 8601 text in UTC on those three. Elasticsearch and OpenSearch also index dates into an index without date detection, check the text stored for each, and match a DateTime and a DateTimeOffset Prefix value on Born.keyword. Some base tests assert returned values, not only IsSuccess: the index tests check, each on an index of its own, that a created index exists, a deleted one does not and a missing one reads as false, that creating a new index, deleting an index and EnsureIndexExistsAsync on an existing or a missing index succeed with true, and that eight concurrent EnsureIndexExistsAsync calls on a missing index all succeed with true, and bulk indexing returns its count; the IndexMultipleDocumentsAsync tests check that a valid batch stores every document, that a document the validator rejects, or a failing validator, stores none of the batch, and what each engine stores when it rejects one document of a batch, with the ids the error names; the RemoveDocumentsAsync tests check the removed count, which documents are left, a repeated id, an empty list, null ids, and a missing index; translation checks that a supported query yields a query and an unsupported one an error message. Others, such as indexing or deleting a single document, still assert only IsSuccess. FluentApi is tested through FilterByCulture on every provider, and its own test project, Bielu.BetterSearch.FluentApi.Tests, builds each range query (numeric, long, string and date) and checks both bounds and both edge flags, checks that a date bound given as a DateTimeOffset keeps its instant and that a DateTime of each kind becomes the instant in UTC, an unspecified one read as UTC, and checks the occurrence of the clause each query type builds, at the top level and in a bool: a sub-query's own Must(), Should(), MustNot() or Filter() wins, without one it takes its parent's, a bool is added under its parent's occurrence while Should() and the others on it set its clauses' default, and the clauses of a nested bool default to Must. It also checks the ISearchQuery each other builder method gives: the spatial centre, the fuzzy options, raw Lucene, boost (a boost of 0 or less throws), sorting, returned properties, post filters, highlighting, and that WithSearchQuery keeps the query passed to the constructor. These tests check the query model the fluent API builds, not what an engine does with it. IndexLifecycleTestBase runs on Elasticsearch and OpenSearch against a real server, with an index prefix: it checks that indexing, search, a term facet, get, count, update, remove, remove many, remove all, exists, create and delete all use the prefixed index and never the plain name, that searches return the old documents while a rebuild runs and the new ones after the swap, that completing deletes only the indexes the alias pointed at before and keeps the new one, that a rebuild whose new index is gone fails to complete and leaves the alias on the old index, that aborting a completed rebuild fails and keeps the live index, that completing after an overlapping abort has removed the pending alias fails and leaves the alias on the old index, that a complete and an abort run at once never both succeed, that two completes run at once both succeed, that a rebuild naming another index touches nothing, and that the new index gets the configured Mappings. Meilisearch runs its prefix test, IndexPrefixTestBase, term facet, get, count and update included, and checks that a rebuild fails as not supported. Typesense runs IndexLifecycleTestBase against a real server, without the term facet, get, count and update steps it does not implement, and skips the three tests of overlapping calls (an overlapping abort, a complete and an abort at once, two completes at once), which its single-writer contract leaves unsupported; it also checks that completing again after the alias moved deletes the collection left behind, that a complete deletes a rebuild never completed or aborted, that it leaves alone the collections of an index whose name starts the same, that aborting a rebuild a newer one replaced returns false and aborting the live one fails, and that filling an aborted rebuild fails without creating its collection again. Typesense runs all three against a real Typesense 29.0 server through the AppHost, except the test of a document the engine rejects, which it skips because Typesense accepted every malformed document tried, plus its own search tests for a field no document has, MustNot on a term and on a range, the page size limit, SpatialSearchSubQuery, PrefixPhraseQuery, sorting by a string, a date and a multi-valued field, longs past 2^53, stored value types and removing more ids than one request names, and unit tests of the filter rendering. PostgreSQL runs SubQueryTranslationTestBase, IndexingTestBase (a document holding the null character is rejected, and none of its batch is stored), QueryResultBaseTests, DocumentOperationsTestBase, SortingTestBase, FacetsTestBase, HighlightingTestBase, SearchableWritesTestBase and DependencyInjectionTestBase against a real PostgreSQL through the AppHost, plus its own search tests for hostile field names, values and index names, longs past 2^53 and doubles from 1e-300 to 1e300 read back with their types, a range on a multi-valued field, a term of several words, PrefixPhraseQuery, FuzzySubQuery with and without the fuzzystrmatch extension, SpatialSearchSubQuery in both point formats, StringRangeSubQuery, paging, Properties, index creation (also over a name a composite type holds), lists and objects stored as JSON, a numeric term string past the long range, a date-only value read as UTC in a session outside UTC, a batch with an unwritable value naming every id, and a default(JsonElement) failing the write, unit tests of its options validation, and checks that each translator sends invariant numbers and ISO dates and never puts a field name into the SQL text.