Platform

Full-Text Search Without Leaving the Sealed Nodes

An index per table, built and held where the data already is

Search usually means copying your data into another service. On Calimero Network, the index is built and held in memory on the same attested nodes that hold the app's state.

Full-Text Search Without Leaving the Sealed Nodes

Key takeaways

  • Declare searchable fields on a table and query them with Table::search.
  • Each replica builds an in-memory full-text index with tantivy, from the state it already holds.
  • There's nothing to configure, and no third-party search service ever sees your data.

How do I make a table searchable?

Name the fields to index on the table itself with #[table(search = [..])], and query them with Table::search. The app's state ABI lists which fields are searchable, so generated clients know too.

That covers lookups like notes that mention "invoice", or titles that start with "roa", without reading every record in the app.

Where does the index live?

Each node that holds a replica of the app keeps a full-text index of the tables that declare search fields, built with tantivy and kept in memory. The index is built from the state the node already holds, and a node builds it on its first query rather than at start-up.

The data never leaves the sealed nodes to be indexed. There's no index on disk to copy and no search vendor to trust.

What are the limits?

There's one index per table, over the fields that table names. Search is on for every app that declares an index, and there's nothing for an operator to configure.

Why does in-place search matter?

Search services are one of the most common places sensitive data ends up in plain text: support tickets, legal documents, patient notes. Keeping the index inside attested nodes means search gets the same protection as the database: no operator can read it, and nothing leaves to be indexed.

Frequently asked questions

Does Calimero Network send data to an external search engine?

No. Each replica builds its own in-memory tantivy index from the state it already holds.

Do I need to run or configure a search cluster?

No. Declaring search fields on a table is enough. The nodes build and maintain the index.

Is the search index stored on disk?

No. It's kept in memory on the nodes that serve the app's views and rebuilt from sealed state.

← All postsAll use cases →

Read it, then run it.

Start free on Calimero Network Cloud, or book a demo with the team.