AISI — indexes and destinations
An index is where AISI writes what it reads: a full-text index in a database or search cluster you own. AISI creates its objects, or a DBA creates them from a script AISI provides; AISI fills them and keeps them current; ESRA searches them like any other data source. This page covers the six engines an index can live in, the index form, what Provision index creates and how objects are named, objects a DBA creates, the database permissions each engine needs, how long documents are split, the columns ESRA reads, and how to change, rebuild, delete and use an index. Who may read an index is in AISI — security and governance; failures and health are in AISI — operations.
1. What an index is
An index has two halves:
- In AISI: its name, the destination engine and how to reach it, the secrets it binds, what is written for each document (indexing mode, OCR, titles, splitting, document metadata).
- In your database or cluster: a table, collection or index of units. A unit is one row: a whole document, or one part of a document too long for a single row. Every unit carries the document's metadata, so a row read on its own says what it came from and links back to the original.
AISI never stores documents itself. The index holds extracted text, and every unit points back to the file in the storage AISI watches.
- Syncs fill it. A sync reads one storage connection into one index, and several syncs may feed the same index. An index with no sync is not filled; it keeps only documents kept from deleted syncs (deleting a sync).
- One tenant owns it. Its name and its slug are unique within the tenant, and its objects in the destination are named after the tenant and the slug together (§ 3).
- It must be provisioned before anything is written. Documents for an index that is not Ready, or is disabled, wait in the queue.
- AISI never drops anything in your database or cluster. Not when a metadata field is removed, and not when the index is deleted (§ 9). The one exception is the previous generation of an Elasticsearch or OpenSearch rebuild, which AISI itself created (§ 8).
Indexes are managed in AISI → Indexes. Creating, changing, testing, provisioning or verifying, reindexing,
rebuilding, enabling and deleting an index need AISI Manage configuration (AISI_MANAGE). AISI Read
(AISI_READ) sees everything read-only, schema scripts included, with each disabled control naming the role it needs.
2. The six destinations
Each destination is read by the ESRA provider of the same engine, so ESRA needs nothing new to search an AISI index.
| Destination (Destination field) | Versions | Full-text search | Searchable |
|---|---|---|---|
| PostgreSQL | no minimum is checked | a GIN index over the text-search vector | when the write commits |
| SQL Server | with Full-Text Search installed | a full-text catalog and index | shortly after the write: population is asynchronous |
| MySQL / MariaDB | MySQL 8.0+, MariaDB 10.6+ | one InnoDB FULLTEXT index |
when the write commits |
| Elasticsearch / OpenSearch | Elasticsearch 7.10+, OpenSearch 2+ | text fields in a language analyzer |
at the index's next refresh |
| MongoDB | 6.0+ | one text index | when the write commits |
| Oracle | 19c+, with Oracle Text | a CONTEXT index |
at commit, or after the next scheduled sync (see Sync interval) |
All six are offered by every deployment that runs AISI. Choose the engine your organization already operates: AISI needs no vector database and no engine of its own.
3. Creating an index
New index opens the wizard Create an index on its own page, with its steps listed beside it and a running summary: Destination → Connection → Test → Indexing mode → OCR & titles → Splitting → Provision. When a DBA creates the index's objects, the last step is Schema script instead (§ 4).
Destination
| Field | Meaning |
|---|---|
| Tenant | Shown only to a platform administrator working across tenants. Fixed once the index is saved |
| Destination | The engine. Fixed once the index is saved |
| Name | Unique in the tenant. Can be changed later |
| Slug | Names the index's objects in the destination, after the tenant key. 3 to 40 characters: lower-case letters, digits and underscores, starting with a letter, and never two underscores in a row (__). Proposed from the name. Fixed once the index is saved |
| Description | Optional |
| Who creates the objects | AISI creates them automatically (the default) or A DBA creates them from a script AISI provides (§ 4). Can be changed later on the index's page |
The object name. An index's objects are named {tenant key}__{slug}, in lower case. The tenant key is t and
ten hexadecimal characters derived from the tenant's id, the same for every index of that tenant: for a tenant whose key
is t1c5adebcd1 and the slug contracts, the PostgreSQL table is t1c5adebcd1__contracts_units and the Elasticsearch
alias aisi-t1c5adebcd1__contracts. The field's hint shows the name as you type. The key is short so that a slug can
use all of its 40 characters on every destination. Because the tenant is part of the name, two tenants' indexes can
share one database schema or one cluster without ever sharing an object. Within a tenant, AISI
refuses a slug another index already uses, including one that is still being deleted. Once a deleted index is gone, its
slug is free again — but see § 4 on objects left behind.
A name the engine cannot hold is refused when the index is created. The tenant key, the slug and the longest suffix the engine adds must fit the engine's identifier limit:
| Destination | Limit |
|---|---|
| PostgreSQL | 63 bytes per identifier |
| MySQL / MariaDB | 64 characters per identifier |
| SQL Server, Oracle | 128 characters per identifier |
| MongoDB | 255 bytes for the namespace ({database}.{collection}) |
| Elasticsearch / OpenSearch | 255 bytes; lower case, none of the characters the engine forbids, and not starting with -, _ or + |
The refusal says how long the tenant key and the slug may be together. Choose a shorter slug.
Connection
The settings depend on the engine. Settings marked fixed cannot change once the index has been provisioned, because they name objects that already hold units.
On PostgreSQL, SQL Server, MySQL/MariaDB and Oracle, Connection is entered as host, port, database (the service name on Oracle) and additional attributes; see Entering A SQL Connection. The examples below are the connection strings it saves.
| Destination | Settings |
|---|---|
| PostgreSQL | Connection (host, port and database, no user name or password: Host=db.example.com;Port=5432;Database=search); Schema, an existing schema, default public, fixed; Text-search configuration, such as english or simple, default english, fixed; Writer user; Reader user; Require TLS |
| SQL Server | Connection (Server=sql.example.com;Database=search); Schema, default dbo, fixed; Full-text language: english (default), french, german, italian, spanish, portuguese, dutch, danish, swedish, russian, turkish or simple, fixed; Writer user; Reader user; Require TLS |
| MySQL / MariaDB | Connection, which must name the database (Server=db.example.com;Port=3306;Database=search); Writer user; Reader user; CJK tokenizer, MySQL's ngram parser for Chinese, Japanese and Korean, off by default, MySQL only, fixed; Require TLS |
| Elasticsearch / OpenSearch | Cluster URL (https://search.example.com:9200, no credentials); Authentication: apiKey (default, Elasticsearch) or basic (Elasticsearch or OpenSearch); Writer user and Reader user, with basic authentication only; Analyzer, default standard; Primary shards, 1 to 64, default 1; Replicas, 0 to 10, default 1; Require TLS |
| MongoDB | Connection, a mongodb:// or mongodb+srv:// URI with no user name or password; Database, fixed; Authentication database, default admin; Writer user; Reader user; Language, the stemming language or none, default english, fixed; Require TLS |
| Oracle | Connection (Data Source=db.example.com:1521/SEARCHPDB); Writer user, whose schema holds the table, fixed; Reader user; Lexer: basic (Western languages, default) or world (mixed or Asian scripts), fixed; Sync interval (minutes), 0 to 1440, default 0; Require TLS |
- Require TLS is on by default and refuses an unencrypted connection (on Elasticsearch, a plain-
httpURL). Turn it off only for a server on a trusted local network. - Elasticsearch analyzers:
standard,simple,cjkand the language analyzers fromarabictoturkish. Analyzer and Primary shards take effect at the next rebuild (§ 8); Replicas when the index is provisioned again. - MongoDB languages:
none,danish,dutch,english,finnish,french,german,hungarian,italian,norwegian,portuguese,romanian,russian,spanish,swedish,turkish. - Oracle sync interval. 0 makes a unit searchable when its transaction commits. A positive interval speeds up a large first load; searches then see changes after the next sync.
Credentials. Each index binds secrets from the Secret Store, never a value typed into the form:
| Slot | Required | Holds |
|---|---|---|
| Writer password (Elasticsearch: Writer API key or password) | yes | what AISI creates and writes the index with |
| Reader password (Elasticsearch: Reader API key or password) | no | what an ESRA source created from the index reads with |
How secrets are bound, rotated and kept out of the Portal is in credentials. Every host the connection names must be on the tenant's Outbound Allowlist — for MongoDB, every host the URI resolves to. See network access.
Test
Save and test saves the index and opens its connection once. Nothing is created in the destination yet. The wizard goes no further until the destination is reachable. What the test checks:
| Destination | Checks |
|---|---|
| PostgreSQL | the writer may create tables in the schema |
| SQL Server | Full-Text Search is installed; the writer may create tables in the database and alter the schema |
| MySQL / MariaDB | the server is MySQL 8.0+ or MariaDB 10.6+ |
| Elasticsearch / OpenSearch | the cluster is Elasticsearch 7.10+ or OpenSearch 2.0+ |
| MongoDB | the server is 6.0+ |
| Oracle | Oracle Text is installed and the writer can run CTXSYS.CTX_DDL |
Test destination, on the index's summary panel or at the top of its page, runs the same check later. Its result is recorded as the index's health; see what to watch.
Indexing mode, OCR & titles, Splitting
These say what is written for each document. Indexing mode is one of:
| Mode | Writes |
|---|---|
| Full content | each document's text, split into parts that fit the destination. No model is called |
| Summary only | one unit per document holding a model's summary. The full text is not searchable |
| Summary and content | the full text, with a summary added, so a search can match either |
Summaries, OCR, generated titles and token budgets are described in AISI — extraction, OCR and summaries. Splitting is in § 6.
Provision
Provision saves the processing settings and creates the index's objects (§ 4). It succeeds with Provisioned at schema version 1. and the index becomes Ready. Create a sync to fill it.
When a DBA creates the objects, the last step is Schema script: it saves the processing settings and shows the script for the DBA. Verify once the script has run — at once, or later with Verify index on the index's summary panel or page (§ 4).
If the wizard is left before the end, the index is kept as saved. Finish it on the index's page (select it in the grid and choose Open index), then Provision index (or Verify index) on its summary panel or page.
4. What Provision index creates
Provisioning brings the destination's objects to what the index needs, and changes nothing that already matches. Run it again at any time: after a failure, after fixing a grant, or after changing Replicas. It runs within the request, for at most five minutes, and only one provisioning of an index runs at a time. An index whose objects a DBA creates is not provisioned but verified: see Objects a DBA creates below.
In the table, {name} is the index's object name, {tenant key}__{slug} in lower case (§ 3); Oracle uses it in upper
case. The secondary indexes on the relational destinations are named {name}_doc, {name}_mod, {name}_ext,
{name}_path and {name}_ten, the primary key {name}_pk, and the full-text index, where it has a name, {name}_fts.
| Destination | Objects |
|---|---|
| PostgreSQL | table {schema}.{name}_units; B-tree indexes on document and part, modification time, extension, path (for prefix filters) and tenant; a GIN full-text index ({name}_fts) over the searchable columns in the chosen text-search configuration — the same expression ESRA searches with; table {name}_ver. A configured reader is granted USAGE on the schema and SELECT on the units table |
| SQL Server | table [{schema}].[{name}_units] with a clustered primary key; indexes on document and part, modification time, extension and tenant; a full-text catalog aisi_{name} and a full-text index over the searchable columns in the chosen language, with automatic change tracking; table {name}_ver |
| MySQL / MariaDB | InnoDB table {name}_units in the connection's database, utf8mb4 with an accent-insensitive collation; indexes on document and part, modification time, extension, tenant and the first 768 characters of the path; one FULLTEXT index over exactly the searchable columns (with the ngram parser when CJK tokenizer is on); table {name}_ver |
| Elasticsearch / OpenSearch | concrete index aisi-{name}-g{generation} with a strict mapping, behind the alias aisi-{name}, which is what ESRA reads. Searchable fields are text in the chosen analyzer; every other string is a keyword. The schema version and the owning index are kept in the mapping |
| MongoDB | collection {name}_units in the chosen database; one text index (aisi_text) over the searchable fields in the chosen language; indexes on the unit key (unique), document and part, modification time, path and tenant; collection {name}_meta |
| Oracle | table "{WRITER}"."{NAME}_UNITS" in the writer's schema; a CONTEXT index {NAME}_TXT with a multi-column datastore over every searchable column and a lexer preference, both named after the index's id (AISI…_DS, AISI…_LX); table {NAME}_VER. A configured reader is granted SELECT on the table |
Object names and ownership
Every set of objects records the index that created it: the index_id column of the version table on the SQL
engines, _meta.aisi_index_id in the Elasticsearch mapping, and the schema document in MongoDB's {name}_meta.
An index never writes into, verifies or empties objects that are not its own. When objects of its name already
exist and record another index, or record none because AISI did not create them, provisioning fails with
DESTINATION_OBJECTS_TAKEN and changes nothing. AISI never adopts or drops them. Either have a DBA remove them, or
create the index with another slug.
This matters most after an index is deleted. Its objects stay in the destination (§ 9), and its slug becomes free. A
new index created with the same slug, in the same tenant, has the same object name, finds the deleted index's objects,
and is refused with DESTINATION_OBJECTS_TAKEN until a DBA drops them or the new index is given another slug.
Provisioning is refused, with nothing created, when:
| Destination | Refused when | Classification |
|---|---|---|
| Every destination | objects of the index's name exist and belong to another index, or were not created by AISI | DESTINATION_OBJECTS_TAKEN |
| SQL Server | Full-Text Search is not installed (install mssql-server-fts on Linux, the Full-Text feature on Windows) |
FULL_TEXT_NOT_INSTALLED |
| MySQL / MariaDB | the server is too old; InnoDB is unavailable; CJK tokenizer is on for MariaDB; another provisioning holds the lock | DESTINATION_UNAVAILABLE |
| Elasticsearch / OpenSearch | the cluster is too old | DESTINATION_UNAVAILABLE |
| Elasticsearch / OpenSearch | an index is already named aisi-{name}, or the alias points at an index AISI did not create for this index |
DESTINATION_OBJECTS_TAKEN |
| MongoDB | the server is older than 6.0 | DESTINATION_UNAVAILABLE |
| MongoDB | the collection already holds a different text index (AISI never replaces it) | DESTINATION_SCHEMA_MISMATCH |
| Oracle | there is no CTXSYS schema |
ORACLE_TEXT_NOT_INSTALLED |
| Oracle | the writer cannot run CTXSYS.CTX_DDL; grant it CTXAPP |
ORACLE_TEXT_GRANT_MISSING |
On Elasticsearch, provisioning also waits up to 30 seconds for the primary shards to be allocated, and fails if they are not.
The reader must be able to read, and only read. When a reader secret is bound, provisioning connects as the reader,
reads the units table, then attempts a delete that matches nothing. If the read is refused, provisioning fails with
READER_CANNOT_READ: every search of an ESRA source made from the index would fail with a permission error. If the
delete runs, provisioning fails with READER_NOT_READ_ONLY, because ESRA must never read with a principal that could
change the index. The objects already exist by then: fix the reader's grants and provision again.
A table the writer creates belongs to the writer, and no other user may read it until it is granted. On PostgreSQL and
Oracle, provisioning grants the configured reader read access to the units table itself. On SQL Server and MySQL/MariaDB
the writer usually may not grant, so grant the reader SELECT on the units table, or use the index's schema script,
which includes the grant.
What the result reports. A successful provisioning names the relation it created. MySQL also reports the server's
minimum indexed word length (innodb_ft_min_token_size), its stopword setting and max_allowed_packet, because each
changes what a search finds or what a write can carry. MongoDB reports whether writes are transactional on that
deployment.
Objects a DBA creates
In many enterprises a DBA must review and run every change to a production database. For such an index, choose Who creates the objects → A DBA creates them from a script AISI provides. AISI then never creates or changes the index's objects: it hands over a script, and verifies what the DBA has put in place. The choice can be changed later on the Overview tab of the index's page.
The schema script. The Schema script tab of the index's page (Show schema script on its summary panel), and the wizard's last step, show it, with Copy and Download:
| Destination | The script is |
|---|---|
| PostgreSQL, MySQL / MariaDB | SQL |
| SQL Server | SQL in GO-separated batches |
| Oracle | SQL in PL/SQL blocks, each ended by a line holding only / (for SQL*Plus or SQLcl). It runs as the writer, whose schema holds the objects |
| Elasticsearch / OpenSearch | requests in the console format of Kibana Dev Tools and OpenSearch Dashboards |
| MongoDB | db.runCommand(...) lines for mongosh |
The script:
- creates exactly the objects of the table above, the same statements provisioning would run, and records the index as their owner;
- is safe to run again. It skips what is already in place and brings an older shape up to date. On Elasticsearch,
a rerun's first request is refused with
resource_already_exists_exception; that is expected, and the requests after it still apply; - never drops anything;
- grants the writer read and write, and the reader read only, on the units table, when the index names their user
names. MySQL grants name
'user'@'%': adjust the host if your accounts are bound to one. On Oracle the writer owns the objects and needs no grant.
The notes above the script say how to run it and as whom.
Verify. Once the DBA has run the script, Verify (in the wizard) or Verify index (on the index's summary panel or page) checks the destination. It replaces Provision on such an index and creates nothing. It reports:
| Classification | Means |
|---|---|
DESTINATION_SCHEMA_MISSING |
an object is absent, or the script did not run to its end |
DESTINATION_SCHEMA_MISMATCH |
the objects exist but differ; the message names each missing or different column, index or missing writer privilege |
DESTINATION_OBJECTS_TAKEN |
the objects belong to another index, or were not created by AISI |
READER_CANNOT_READ |
the reader may not read the units table |
READER_NOT_READ_ONLY |
the reader can write |
A successful verification makes the index Ready. A failed verification of an index that has served before returns it to Awaiting schema, not to Provisioning failed, so searches keep working while the DBA fixes it.
Adding a metadata field to a DBA-managed index puts it in Awaiting schema: The index's definition changed. Searches keep working; documents wait to be written until a DBA runs the schema script again and the index is verified. ESRA keeps reading the index as it is. The DBA reruns the same script, which adds the new column, and the index is verified again.
Rebuilding an Elasticsearch or OpenSearch index a DBA manages is described in § 8.
5. Database permissions
AISI only ever needs two principals per index. Grant each exactly this. For an index AISI provisions:
| Destination | Writer | Reader |
|---|---|---|
| PostgreSQL | CREATE on the schema, which must already exist. The writer owns the tables it creates |
USAGE on the schema and SELECT on {schema}.{name}_units. AISI grants both when the index names a Reader user |
| SQL Server | CREATE TABLE in the database and ALTER on the schema, and the right to create a full-text catalog and full-text index there |
SELECT on the units table. AISI does not grant it |
| MySQL / MariaDB | CREATE, ALTER, INDEX, SELECT, INSERT, UPDATE and DELETE on the database |
SELECT on the units table. AISI does not grant it |
| Elasticsearch / OpenSearch | create_index, manage, write, read and delete_index on aisi-* indexes, and the monitor cluster privilege |
read on aisi-* indexes only |
| MongoDB | readWrite on the database (it includes creating indexes) |
the read role on the database |
| Oracle | CREATE SESSION, CREATE TABLE, a tablespace quota and the CTXAPP role; CREATE JOB too when Sync interval is above 0 |
CREATE SESSION only: AISI grants it SELECT on the table |
For an index a DBA manages, the writer creates nothing, so it needs no CREATE privilege: only reading and
writing the index's own objects. The schema script grants that when the user names are set.
| Destination | Writer | Reader |
|---|---|---|
| PostgreSQL | USAGE on the schema; SELECT, INSERT, UPDATE, DELETE on {name}_units; SELECT on {name}_ver |
USAGE on the schema; SELECT on {name}_units |
| SQL Server | SELECT, INSERT, UPDATE, DELETE on the units table; SELECT on the version table |
SELECT on the units table |
| MySQL / MariaDB | SELECT, INSERT, UPDATE, DELETE on the units table; SELECT on the version table |
SELECT on the units table |
| Elasticsearch / OpenSearch | write and read on aisi-* indexes, and the monitor cluster privilege. To rebuild (§ 8), also manage and delete_index: AISI moves the alias and deletes the previous generation itself. The script is sent by a user with create_index and manage |
read on aisi-* indexes only |
| MongoDB | readWrite on the database |
the read role on the database |
| Oracle | the script runs as the writer, which owns the objects: CREATE SESSION, CREATE TABLE, a tablespace quota and CTXAPP |
CREATE SESSION only: the script grants it SELECT on the table |
- A writer missing a privilege shows as
DESTINATION_SCHEMA_MISSING, with a message saying which kind. Documents wait without using up their attempts until it is fixed; then Provision index (or Verify index) again. - The reader is optional in AISI. Without one, choose the reader's credentials when creating the ESRA source instead. With one, provisioning proves it cannot write (§ 4).
- AISI reads storage, never writes it. These are the only write permissions AISI needs anywhere.
6. Parts, ceilings and splitting
A document that fits the destination is written as one unit. A longer one is split into parts, each a unit of its own, searchable on its own and carrying the heading path, page range and sheet it came from. Parts do not overlap. A part that starts inside a table repeats the table's header.
How a document is cut. AISI uses the coarsest boundary at which every piece fits: headings, then worksheets, pages, paragraphs and table rows, then sentences. Only a passage with no such boundary is cut at a space. Small neighbouring pieces are packed together up to the part size, so a document is not scattered into tiny parts.
Each engine has two ceilings, in characters of one unit:
| Destination | Searches best below | Holds at most | Checked exactly before writing |
|---|---|---|---|
| PostgreSQL | 100,000 | 1,000,000 | yes: the real limit is the 1 MiB text-search vector, which depends on the words |
| SQL Server | 100,000 | 1,073,741,823 | no |
| MySQL / MariaDB | 100,000 | 16,000,000 | yes: against the server's max_allowed_packet, with 64 KB for the metadata |
| Elasticsearch / OpenSearch | 1,000,000 | 10,000,000 | no |
| MongoDB | 100,000 | 15,000,000 | yes: against MongoDB's 16 MiB document limit, with 1 MiB for the metadata |
| Oracle | 100,000 | 16,000,000 | no |
Where the engine is checked exactly, a part it could not hold is split again, never failed. AISI tries this up to four
times; a part still refused then fails the document with FIELD_TOO_LONG.
The index's own settings, on the Splitting step and the Processing tab:
| Setting | Default | Meaning |
|---|---|---|
| Splitting | Keep documents whole where possible | A document is split only when it exceeds the part size. Balanced parts splits near the part size instead, and never above 25,000 characters |
| Part size override (characters) | the destination's own | At least 200, and at most what the destination holds. Above what it searches best, the Portal warns that larger parts rank less precisely |
| Most parts per document | 2,000 | 1 to 10,000. A document needing more fails with TOO_MANY_PARTS: AISI never indexes part of a document |
The part size in force is the override, or else the destination's searches best value, and never above what it holds. The step shows it: This destination holds up to … characters in one part and searches best below … Parts are currently cut at …
Other limits apply before splitting: the largest file fetched and the most characters one document may extract to.
They are in AISI — extraction, OCR and summaries. An over-long metadata value
(a title, an author) is cut to its column rather than failing the document. On Oracle, a path longer than 4,000 bytes
cannot be stored, and its document fails with FIELD_TOO_LONG. So can a text metadata field over 1,000 characters,
unless the database runs MAX_STRING_SIZE = EXTENDED: AISI notices when it creates the index's objects and gives such a
field room for its full length. The path keeps its limit either way, because an index covers it.
7. What an index holds
Every engine holds the same columns, so an ESRA source reads any AISI index the same way.
| Column | Holds |
|---|---|
unit_id |
the unit's key: the document and the part number |
document_id, part_ordinal, part_count, unit_kind |
which document, which part of how many; document, part or summary |
title, file_name, section_path, summary, content |
the searchable columns, weighted in that order (title highest, content lowest) |
path, parent_path, container, source_item_key, source_web_url, document_ref |
where the original is; document_ref is a stable aisi:// reference |
file_extension, mime_type, size_bytes, source_created_at, source_modified_at, source_version, author, language |
facts about the file |
page_from, page_to, sheet_name |
where in the document a part is |
tenant_id, index_id, sync_id, sync_name, connection_name, source_provider |
which tenant, index and sync wrote it |
title_source, summary_coverage, content_chars, extraction_method, content_hash, indexed_at, index_generation, document_revision |
how it was produced |
meta_* |
one column per document metadata field the index declares |
- ESRA collapses parts. It groups units by
document_idandpart_ordinal, so a search returns a document once, with passages cut fromcontent(fromsummaryin Summary only mode). - The title and timestamp ESRA shows are
titleandsource_modified_at. - On Oracle, Oracle Text indexes one column, so the text index sits on
contentand covers every searchable column through the datastore. A search still matches a title, file name, heading or summary, but per-column weights do not apply.
8. Changing an index
| You change | What it takes |
|---|---|
| Name, Description | nothing more |
| A destination setting marked fixed | not possible after provisioning: create a new index with a new slug, and syncs that feed it |
| Any other destination setting (Connection, user names, Require TLS, Sync interval, Replicas) | pause every sync that feeds the index first. AISI refuses the change while one runs. Provision again after changing Replicas or Sync interval |
| Analyzer, Primary shards (Elasticsearch / OpenSearch) | pause the syncs, save, then Rebuild index. Provisioning again keeps the served generation as it was built and reports that a rebuild is pending |
| Indexing mode, OCR, titles, summaries, splitting (Processing tab) | nothing: documents processed under different settings are queued again on save. Turning on generated titles requeues only documents titled from their file name |
| Document metadata fields (Metadata tab) | described in AISI — extraction, OCR and summaries. A removed field's column stays in the destination. On an index a DBA manages, an added field waits for the DBA (§ 4) |
| Who creates the objects (Overview tab of the index's page) | nothing in the destination. From then on the index is provisioned by AISI, or verified after a DBA has run its script (§ 4) |
Reindex documents
Reindex documents queues documents to be processed again, in place. The index keeps serving while they are. Only a Ready index can be reindexed. Choose:
- Documents processed under different settings. — the usual choice after a settings change that did not requeue them.
- Every document. — after a change in the destination that AISI cannot see, such as restoring the database from a backup.
The Portal reports how many documents were queued.
Reclassify documents
Reclassify documents, which opens the Reclassify tab of the index's page, classifies chosen metadata fields of the indexed documents again, after a field was added or its definition changed: one model call per document, from the stored summary or the document, and only those fields' values change. See AISI — extraction, OCR and summaries.
Rebuild index (Elasticsearch / OpenSearch only)
Rebuild index builds a whole new generation beside the one being served and fills it, with no downtime:
- Type the index's slug to confirm. A new concrete index,
aisi-{name}-g{next}, is created with the current settings, and every document is queued for it. - Syncs write into the new generation. Searches keep reading the old one through the alias. The index shows Rebuilding, and its summary panel: Generation N is filling; generation M serves until it is complete.
- When no document is still waiting for the new generation, the worker moves the alias in one step and deletes the earlier generations. A document that has failed for good does not hold the switch. This is the one case in which AISI deletes an object in your cluster: a generation it built itself for the rebuild.
A second rebuild is refused until the first has switched. An ESRA source over the index needs no change: it searches each field with the analyzer it was indexed with, before and after the switch.
On an index a DBA manages, AISI does not create the new generation. Before Rebuild index, the DBA runs the schema script for the next generation: on the Schema script tab, switch on Script for the next generation (to prepare a rebuild), and run all of it. That script creates the new generation and leaves the alias where it is: AISI moves the alias itself when it swaps generations, and then deletes the previous generation, as above. Verify refuses an alias that points at more than one generation, or at the new one before the swap. The Rebuild index dialog of such an index reminds you, with a link to the script.
On every other engine Rebuild index answers This destination cannot build a new generation beside the current one. Use Reindex to reprocess the documents in place.
9. Disabling and deleting
Disable index keeps everything and stops writing: Index disabled. Documents wait until it is enabled again. Searches through ESRA continue against what is already indexed.
Delete index, on the index's summary panel or its page, is refused while a sync feeds the index: the button is disabled and says Fed by N syncs. Delete them first. A sync that is already being deleted no longer counts: the index's deletion waits for it to finish (deleting a sync).
AISI never drops the index's objects. The table, collection or Elasticsearch index stays in the destination, whatever is chosen. On a provisioned index, the dialog offers one choice:
- Also delete every row this index wrote — every unit the index wrote is deleted from the destination: a
DELETEin batches on the SQL engines, a delete-by-query over every generation on Elasticsearch and OpenSearch,deleteManyon MongoDB. Never aDROP: the objects stay, empty. - Unchecked — the indexed text stays in place, for something else to read or remove.
The index disappears from AISI at once and its documents are no longer processed. The worker then completes the deletion: it waits for any syncs still being deleted, deletes the rows when asked, removes the index's documents from the catalog — documents kept from deleted syncs (Orphaned) included — and last the index itself, which frees its slug.
To remove the objects themselves, have a DBA drop them once nothing reads them; their names are in § 4. Until they are
dropped, a new index with the same slug in the same tenant is refused with DESTINATION_OBJECTS_TAKEN
(object names and ownership).
10. Using an index in ESRA
An index becomes searchable through an ESRA source created from it. ESRA reads the index with the reader principal, bound by reference.
- From AISI: Use in ESRA, on the index's summary panel or its page, opens ESRA's Sources screen with the index
chosen. It needs ESRA's data manage role (
ESRA_DATA_MANAGE) as well as access to the Indexes screen, and the index must be Ready. - From ESRA: From an AISI index on ESRA's Sources screen does the same. An ESRA data manager can choose an index there without any AISI role.
The index decides the connection, the table, the key, the title, timestamp, snippet and grouping columns, the
text-search configuration, which columns are searchable and a choice field's allowed values. ESRA's operator decides
the fields, their descriptions, which are returned and filterable, and everything about who may search. When the index changes shape, the source shows AISI_SCHEMA_DRIFT
until Update from AISI is applied. Details are in
A source created from an AISI index.
11. Who can read an index
The index is the access boundary. Anyone who can reach an ESRA capability over the index can read every document in it: AISI does not record who may open each document at the storage. So index together only what the same people may read, and let ESRA decide who reaches it, with capability and exposure access, tool access policies and the source's record conditions. See who can read an index.