Skip to content

Upgrade to v1.14 ​

v1.14 changes no configuration, dump format or packaging. Dumps written by v1.13 load without conversion, and well-formed queries return the same results as before. A few error responses changed, which matters only to callers that match on them. If you are upgrading from before v1.13, also complete the v1.13 upgrade checklist first; its startup changes are the larger step.

Check callers that match error responses ​

Requestv1.14 response
SEARCH or COUNT without a table nameERROR 3000 SEARCH requires a table name or ERROR 3000 COUNT requires a table name. The message used to read requires at least table and search text.
HTTP q that is empty or only whitespace on /search, /count or /facet400 with 3000 Field 'q' must be non-empty. Whitespace is judged by Unicode. /facet used to accept an empty q; an absent q succeeds on all three routes.
HTTP filter object without value, such as {"col": {"op": ">"}}3006 Missing filter value for column: <col>. It used to return 3006 Invalid filter value type for column: <col>.
An empty or whitespace-only query sent through the bundled C/C++ client in literal or boolean mode7009 from the client before anything is sent. The server used to answer 3000.

SEARCH t "" still returns ERROR 3000 SEARCH requires non-empty search text.

What now works ​

  • Queries without search text. SEARCH <table> FILTER ... and COUNT <table> FILTER ... cover every indexed row that passes the filters, so the index can serve list pages and filtered counts. On HTTP, q is optional on /search and /count. HIGHLIGHT, FUZZY and SORT _score need search text and are refused without it (3000, 3000, 3007). These queries bypass the query cache. See Queries Without Search Text.
  • IS NULL and IS NOT NULL filters. On TCP, FILTER <col> IS NULL; on HTTP, {"col": {"op": "IS NULL"}}. A row with no stored value for the column matches IS NULL, including a value that could not be converted to the filter type at ingest. FILTER c = NULL is still an equality with the string NULL. See Filter Conditions.
  • Faster filters and list pages. Every filter operator can run on the filter index's bitmaps, and pages in primary-key order sort only the rows that were indexed out of primary-key order. Results are unchanged. Performance lists the measured times and the conditions they were measured under.

Watch for primary_key_order_exceptions_high ​

Document IDs follow the order rows were indexed. Rows inserted out of primary-key order make primary-key-order pages a little slower. When more than 65,536 such rows accumulate in a table, the server logs primary_key_order_exceptions_high once. Running SYNC on that table reassigns its document IDs in primary-key order.

Update the client libraries ​

The bundled C/C++ client library is version 2.1.0, and its soname stays libmygramclient.so.2. The ABI changes are additions only, so binaries built against 2.0 keep working without a rebuild:

  • match-all mode: C++ QueryMode::kMatchAll, C MYGRAM_QUERY_MATCH_ALL
  • presence filters: C++ FilterOp::kIsNull and FilterOp::kIsNotNull, C MYGRAM_FILTER_IS_NULL and MYGRAM_FILTER_IS_NOT_NULL
  • count with typed options: C++ Count(table, query, options) with CountOptions, C mygramclient_count_with_options with MygramCountOptions_C

A match-all search that asks for highlight, fuzzy or a _score sort fails with 7009 before it is sent. See C/C++ Client Library.

For Node.js, Python and Go, match-all queries and presence filters are available from Node.js mygramdb-client 1.8.0, Python mygramdb-client 1.7.0 and go-mygram-client v0.8.0. These releases also refuse an empty or whitespace-only query before sending it outside match-all mode. See Client Libraries.

Rollout Checklist ​

  1. Search application code and monitoring for the four changed responses above, and update anything that matches on the old text or code.
  2. Replace client-side workarounds that sent a placeholder search term to list or count rows with a query without search text.
  3. Rebuild against client library 2.1.0 only if you use the new modes; existing binaries keep working.
  4. After restart, wait for readiness, run representative searches, and confirm replication advances.

See the v1.14.0 release notes for the full change list.