Glossary

File indexing

The process of reading files and recording their content and metadata in a structure that makes them searchable without opening each one.

File indexing is the process of reading files and recording what they contain, along with details such as name, type and date, in a structure built for fast lookup. A search then queries the index instead of opening every file, which is how a query over millions of documents can return in milliseconds.

How file indexing works

An indexer works in stages. It identifies each file’s format, usually from its MIME type and contents, which is the job of file type detection. It extracts the text: directly from digital documents, through OCR for scans and images, and through audio transcription for recordings. It records file metadata such as size, author and creation date, often through metadata extraction. Then it writes the results into one or more indexes.

Two kinds of index are common. An inverted index maps each word to the files that contain it and powers keyword search and full-text search. A vector index stores an embedding of each passage and powers semantic search, which finds content by meaning. Long files are split first through chunking, so a match points to a passage rather than a whole document, and systems that query both indexes at once support hybrid search.

File indexing vs file storage

Storage keeps bytes and returns them by path. Object storage such as Amazon S3 holds files at very large scale but finds them only by key or prefix, so a scan named scan_0042.pdf stays invisible to a search for the contract inside it. Indexing adds the layer that knows what each file contains. Desktop tools such as Windows Search and macOS Spotlight do this for local disks, and applications and agents need the same for their own stores.

Approach

Finds files by

Misses

Storage only

Path, key or filename

Anything not in the name

Keyword index

Exact words in the content

Synonyms and paraphrases

Vector index

Meaning of the content

Exact codes, names and IDs

Hybrid index

Words and meaning together

Little, if both are tuned

Keeping an index fresh

An index is only as current as its last update. When files change after they were indexed, search keeps returning the old version, a problem described under stale knowledge and document freshness. Incremental indexing processes only new and changed files, which is cheaper than re-indexing everything, though a full rebuild is still needed when the embedding model or chunking strategy changes. Knowledge bases rot explains why data ingestion has to be continuous.

Why file indexing matters for agents

Agents rarely know a filename. They know what a file is about, and they ask in natural language. An agent file system without an index forces the agent to list folders and open files one by one, which costs tokens and time. With an index, one search call returns the passage that answers the question, with a page number or timestamp the agent can cite, which is the idea behind sub-document retrieval. Filenames are not search makes the case in more detail.

File indexing in Exabase

Exabase indexes content when it is stored. Files, notes, bookmarks, audio and video saved as Resources are extracted and indexed on creation, with no embedding pipeline, chunking logic or parser to run yourself, and the creating resources guide covers the upload flow. Audio and video are transcribed, video is split into scenes and visually analysed, images get OCR text, captions and dominant colours, and bookmarked pages are fetched and indexed.

Deep Search queries the index with text, an image, a colour or an existing resource, combining semantic search with typo-tolerant keyword matching, and returns matched chunks with page numbers or timestamp ranges. The search endpoint and the searching resources guide cover filters for kind, folder, tag and date. For files you only want processed, Extract returns the same chunks and metadata as JSON, and Workers can re-extract changed documents on a schedule. Each Base keeps its own index, so a search in one tenant never returns another tenant’s files. Asset search and Knowledge base describe the two most common setups, and indexing without an embedding pipeline explains the design.

FAQs

What is file indexing?

File indexing records the content and metadata of files in a structure built for fast search. Queries run against the index instead of reading every file.

What is the difference between file indexing and full-text search?

Indexing is the preparation step, and full-text search is one way of querying the result. The inverted index built during indexing is what makes full-text search fast.

Does file indexing work on images and video?

Yes, once their content is turned into text or embeddings. OCR, captioning, transcription and scene analysis make media searchable. Video indexing covers moving images, and the media asset management use case shows it in practice.

How often should an index be updated?

As often as the files change. Index new and edited files as they arrive, and plan a full rebuild when you change the embedding model or the chunking strategy.

Can I index files stored in Amazon S3?

Yes, but S3 does not index file content itself, so you need a separate pipeline or a store that indexes on upload. Exabase vs AWS S3 compares the two approaches.

Is a vector database a file index?

It is one part of one. A vector database stores embeddings, but you still need extraction, chunking, metadata and usually a keyword index around it. Best semantic search API compares packaged options.

Related pages: File metadata, Metadata extraction, Inverted index, Incremental indexing, Agent file system, Agent workspace, Deep Search, Asset search, Exabase vs Elasticsearch, Filenames are not search, Agentic RAG, Multimodal RAG, Knowledge base, Re-indexing.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.