---
title: "Building high-performance full-text search for object storage"
description: "ClickHouse redesigned its full-text index for object storage, where per-request latency rather than bandwidth is the bottleneck."
url: "https://swe.quest/articles/building-high-performance-full-text-search-for-object-storage-7061dd61b5d19a17"
canonical: "https://clickhouse.com/blog/clickhouse-full-text-search-object-storage"
source: "ClickHouse"
published: "2026-03-24"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 33
tags: ["search","storage-engines","data-structures","analytics","performance"]
---

# Building high-performance full-text search for object storage

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-03-24, 33 min read, Deep dive. Original: [https://clickhouse.com/blog/clickhouse-full-text-search-object-storage](https://clickhouse.com/blog/clickhouse-full-text-search-object-storage)

## Summary

ClickHouse redesigned its full-text index for object storage, where per-request latency rather than bandwidth is the bottleneck. The old FST-based dictionary relied on many small random reads, so it was replaced with alphabetically sorted, front-coded dictionary blocks (default 512 tokens) located through a small in-memory sparse index, letting lookups proceed mostly sequentially. Posting lists adapt to size: Roaring bitmaps with per-block min/max row IDs for lists over 12 rows, VarInt arrays for 7–12, and row IDs embedded directly in the dictionary entry for 6 or fewer. Measurements on log and FineWeb datasets back the embedded case: about 90% or more of tokens appear in six or fewer rows. The layout also speeds up part merges, and many queries can be answered from the index alone without reading the text column.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Data structures](https://swe.quest/tags/data-structures.md) (Architecture & design)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- inverted indexes
- ClickHouse data parts and skip indexes ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- object storage latency characteristics ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

ClickHouse, Roaring Bitmaps, front coding, VarInt, Finite State Transducer, ClickHouse Cloud, FineWeb

## Related posts

- [Inside ClickHouse full-text search: fast, native, and columnar](https://swe.quest/articles/inside-clickhouse-full-text-search-fast-native-and-columnar-8035a7e0021a5f86.md): ClickHouse · 2025-08-18 · Medium · 19 min read · Search, Storage engines, Analytics & OLAP, Data structures
  ClickHouse rebuilt its full-text search around a native inverted "text" index that replaces the earlier Bloom-filter indexes (tokenbf\_v1, ngrambf\_v1), which were hard to tune, returned false positives and supported few predicates.
- [Introducing Inverted Indices in ClickHouse](https://swe.quest/articles/introducing-inverted-indices-in-clickhouse-ecbc0f773fa09eed.md): ClickHouse · 2023-02-02 · Medium · 11 min read · Search, Storage engines, Data structures, Analytics & OLAP
  ClickHouse v23.1 adds experimental inverted indexes (contributed by IBM) as MergeTree secondary indexes for full-text term search.
- [Announcing General Availability of ClickHouse Full-text Search](https://swe.quest/articles/announcing-general-availability-of-clickhouse-full-text-search-d53df0e10ad889b4.md): ClickHouse · 2026-03-10 · Medium · 13 min read · Search, Analytics & OLAP, Observability, Performance engineering
  ClickHouse Full-text Search is now generally available, implemented as a Lucene-style inverted index that maps tokens to row numbers using configurable tokenizers and preprocessors defined in SQL.
- [What's new in ClickStack. January '26.](https://swe.quest/articles/what-s-new-in-clickstack-january-26-fe237899e085fba9.md): ClickHouse · 2026-02-11 · Medium · 13 min read · Observability, Analytics & OLAP, Search, Performance engineering
  ClickStack now supports ClickHouse's simpler bloom\_filter skip index with explicit tokens() tokenization for log body search, replacing hard-to-tune tokenbf\_v1 parameters with a single false-positive rate.
- [ClickHouse Release 23.1](https://swe.quest/articles/clickhouse-release-23-1-134a134aa389ba44.md): ClickHouse · 2023-01-30 · Medium · 8 min read · Analytics & OLAP, Search, Caching, SQL, Databases
  ClickHouse 23.1 adds experimental inverted full-text indices as a data-skipping index, parameterized views, and a TTL-based query results cache, alongside 17 features, 17 performance optimisations and 78 bug fixes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
