Skip to main content

store_text

Function store_text 

Source
pub async fn store_text(app: &App, tn_id: TnId) -> bool
Expand description

Whether this tenant keeps the extracted plain text alongside its index.

true (the default) routes its rows to the external-content search_fts, where snippet() works; false routes them to the contentless search_fts_cl, which indexes the same text but stores none of it.

Read on every index run and every query — cheap, since the settings service caches. A read failure falls back to the default: a tenant whose setting cannot be read is better indexed the ordinary way than not at all.

A flip migrates nothing by itself. Objects move as they are re-indexed, and the whole tenant on the next reindex, which [reindex::index_stamp] makes stale as soon as this value changes.