Skip to main content

Row search

Row search finds Provider records by what their text says. Pool search finds which tables and columns hold a kind of data. Row search finds the records themselves: calls where a customer raised pricing, issues about an SSO login loop. Use Pool search when you do not yet know the table. Use Row search when the question is about the contents of records. One SQL table function does the search: search_everything. It covers the Provider Pool only, providers.<connector>.<table>, and only text fields a Provider has flagged for it. It takes up to four arguments, by position only: query, then scope, then limit, then half_life. The query is plain text describing the records you want. The optional scope is a dotted pattern that must start with providers, the same shape Pool search uses: providers.jiracloud.* is one Provider, providers.jiracloud.issues.body is one field. With no scope, every Provider table the session can read is searched. The optional limit is how many records to return, from 1 to 100, and it defaults to 20. Pass NULL to skip scope and still set limit. The optional half_life, an INTERVAL such as INTERVAL ‘30 days’, ranks fresh records higher. Run a search like any other SQL, with Preview a Plot, the operation that runs one query and returns its rows without saving a Report.
Each result row is one source record, never one passage. table_ref is the name to put in FROM. row_key is the record’s key as JSON text. column_name is the flagged field of the best passage. span is JSON saying where that passage sits. snippet is the start of the best passage, a few hundred characters, taken from the record as the caller is allowed to read it. score is that passage’s similarity, from 0 to 1, not a sum, so a long record does not outrank a short one. matched_chunks is how many of the record’s passages matched. provider is the Provider’s name in the catalog. updated_at is when the Provider last changed the record, as a timestamp you can compare with now() or a date. It is the record’s change time, not the passage’s. A Gong call transcript takes the start time of its call. updated_at is NULL for a table that declares no time. relevance is score with a factor for the record’s age when the call names a half-life, else score, and the results come in relevance order. A record a Provider Policy hides is left out, and its text never appears in a snippet. A session that cannot query the Provider Pool does not see its records. An empty result is not proof that nothing matches: a missing model policy, a policy that admits no embedding model for this search, or an index that is missing or still building all return no rows. Try again later, or use Pool search and read the table. Searches run only in interactive queries, such as Preview a Plot or a Plot that a Pane runs. A Pipeline cannot call search_everything: saving one records an error on the Plot, and the Plot cannot publish until the call is removed. For a Pipeline, use a search to find records, then write its SQL against the source table. A Pane can search for the text a person types: the Plot’s SQL calls search_everything($1, NULL, 20), and the Pane sends the text as $1. A bound value gets the same checks as a literal, and a search with no value for its parameter is refused.
  1. Describe the records in plain words, such as customer raised pricing or SSO login loop. Narrow with a scope when you already know the Provider.
  2. Keep a LIMIT. The function’s own limit is the number of records, and SQL LIMIT only filters those.
  3. For a question about a time, such as what customers said this month, filter on updated_at, for example WHERE updated_at >= now() - INTERVAL ‘30 days’, or updated_at BETWEEN DATE ‘2026-09-01’ AND DATE ‘2026-10-01’. The search applies the window itself, so a narrow window still finds matching records. Compare updated_at itself with a time, with BETWEEN, IS NULL or IS NOT NULL, joined by AND. Any other filter on updated_at alone, such as date_trunc(‘day’, updated_at) or two ranges joined by OR, is refused with QL-PL-023, and the message names the form to use.
  4. When fresh records matter more but older ones still count, such as what customers say about pricing lately, pass a half-life and order by relevance: search_everything(‘customer raised pricing’, NULL, 20, INTERVAL ‘30 days’) … ORDER BY relevance DESC. relevance is score × (0.5 + 0.5 × 2^(−age / half_life)), so a record one half-life old keeps three quarters of its score, and age at most halves it. A record with no updated_at counts as the oldest. score stays the similarity. Use a time window instead when records outside a period must not return.
  5. Read the full record from the source table. row_key is JSON text. Join a text key with json_get_str(row_key, ‘id’), and a numeric key with json_get_int, using the names inside row_key. The join is an ordinary read of that table, so a record the search omitted stays omitted.
  6. If nothing comes back, rephrase the query, widen the scope, or check with Pool search that the table exists and the Provider is connected. An empty search can also mean the index is not ready yet.
A good result names the table_ref it used, joins back, and answers from the source rows rather than from the snippet alone. Related Powers: Pool search, Providers, Plots. Find each by its title; do not guess stored names.