# This search updates itself

DevFeed: [This search updates itself](<https://devfeed.tech/articles/this-search-updates-itself-113334.md>)

Original publisher: [Read original article](<https://stack.convex.dev/reactive-full-text-search>)

Author: Stack

Published: 2026-07-23T16:47:10Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [search-engines](<https://devfeed.tech/topics/search-engines.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>), [hybrid-search](<https://devfeed.tech/topics/hybrid-search.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-coding-agent](<https://devfeed.tech/tags/ai-coding-agent.md>), [app](<https://devfeed.tech/tags/app.md>), [array](<https://devfeed.tech/tags/array.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [bm25](<https://devfeed.tech/tags/bm25.md>), [body](<https://devfeed.tech/tags/body.md>), [channel](<https://devfeed.tech/tags/channel.md>), [chat](<https://devfeed.tech/tags/chat.md>), [client](<https://devfeed.tech/tags/client.md>), [convex](<https://devfeed.tech/tags/convex.md>), [full-text-search](<https://devfeed.tech/tags/full-text-search.md>), [index](<https://devfeed.tech/tags/index.md>), [limits](<https://devfeed.tech/tags/limits.md>), [message](<https://devfeed.tech/tags/message.md>), [query](<https://devfeed.tech/tags/query.md>), [reactivity](<https://devfeed.tech/tags/reactivity.md>), [search](<https://devfeed.tech/tags/search.md>)

## AI overview

Convex full-text search keeps results current as the query changes and as matching messages are added: define a search index on one string field, query it with `withSearchIndex`, and subscribe from React using `useQuery` (or `"skip"` for an empty search). Terms match with OR behavior; results rank by relevance, with newer documents first on ties. Search is case insensitive and supports prefix matching only on the final term, but it is keyword search rather than semantic or fuzzy search. Optional channel and author filters use exact equality. Staged indexes can backfill asynchronously but cannot be queried until enabled. Limits include 16 filter fields per index, 8 equality filters and 16 terms per query, terms shorter than 32 bytes, and a 1,024-result scan cap. Result ordering rules may change, and each query is billed based on the full index size.

## Source excerpt

Full text search on Convex updates in two directions, while you type and whenever a new matching message gets added. Here's how to define a search index, query it and subscribe to it from React, plus how the matching works and the limits you should know about.