DatabricksYu Xu, Yingyi Bu, Ivan VezilićAnnouncement
Accelerate search queries with full-text search indexes on Databricks
Summary
Databricks introduces full-text search indexes in Beta on Databricks Runtime 18.2 to accelerate substring and keyword queries on large open-format tables without changing their layouts. The indexes tokenize text columns into a compact lookup structure mapping tokens to matching rows; at query time, the engine uses it to identify candidate files and skip most of the table. They are maintained asynchronously, require no query hints, preserve complete results when stale by scanning indexed and non-indexed data as needed, and support Unity Catalog managed Delta and Iceberg tables on serverless and classic compute. A Trust and Safety team reported a substring search running more than 100x faster on a petabyte-scale table, while Liquid clustering remains complementary because it optimizes column-value filters rather than text within fields.
Context
As tables reach hundreds of gigabytes or terabytes and beyond, text searches can scan far more data than necessary. Teams have used duplicate tables, external search systems such as Elasticsearch or Splunk, or specialized table layouts to address slow lookups.
Approach / What changed
Databricks stores full-text indexes separately from base tables, tokenizes text columns, and maps tokens to matching rows. The query engine automatically consults available indexes to skip files, while asynchronous maintenance avoids slowing writes and stale indexes remain correct by including indexed and non-indexed portions as needed.
Takeaways
Full-text search indexes target substring and keyword queries, including high-cardinality lookups across multiple text columns.
Indexes are maintained asynchronously and selected automatically by the query engine, with no query hints required.
A Trust and Safety team achieved more than 100x faster substring-search performance on a petabyte-scale table.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.