Skip to main content

search_index_object

Function search_index_object 

Source
pub fn search_index_object(app: &App, tn_id: TnId, obj_tp: char, obj_id: &str)
Expand description

Ask for one object’s whole-object index row to be rebuilt. Prefer the three typed wrappers below.

Call this right after a write that changes a column the index reads — a file’s file_name, tags, status, visibility, owner_tag, root_id or content_type; a profile’s name or id_tag; an action’s content, type, sub_type, status, visibility or root_id. Writes that only bump timestamps or counters need nothing.

A no-op when the search subsystem is not wired in, so a feature crate can call it unconditionally.