# Document Indexing: Metadata, Full-Text Search, and Automation

> Learn what document indexing is, how metadata, full-text, and keyword indexes differ, and how to automate document indexing with clean parsed content.

Canonical: https://reducto.ai/guides/document-indexing

## What document indexing means

Document indexing is the process of recording searchable attributes for each document, such as its metadata, assigned keywords, or its full text, in a structure a search system can query. A document index maps those attributes back to the source file, so a request like "contracts with Acme that start in 2025" returns the right files without anyone opening them.

Every index has two parts: the content that gets searched and the identifier that points back to the original document. The index is only as reliable as the text and attributes fed into it. If OCR misreads a date on a scan, or flattens a table into a jumbled string, the index stores that error and every search inherits it.

## Metadata, full-text, and keyword indexes

Most document management and search systems combine three kinds of index.

<Table html={"<table>\n  <thead>\n    <tr>\n      <th>Index type</th>\n      <th>What it stores</th>\n      <th>Best for</th>\n      <th>Watch for</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>Metadata indexing</td>\n      <td>Structured fields such as document type, date, counterparty, ID number, and owner</td>\n      <td>Filtering, sorting, access control, and exact lookups</td>\n      <td>One wrong or missing value hides a document from filtered searches</td>\n    </tr>\n    <tr>\n      <td>Full-text indexing</td>\n      <td>Every word in the document, usually in an inverted index</td>\n      <td>Open-ended queries and terms nobody planned for</td>\n      <td>Depends on clean reading order and table text; broad queries return noisy results without filters</td>\n    </tr>\n    <tr>\n      <td>Keyword indexing</td>\n      <td>Terms or tags from a controlled vocabulary</td>\n      <td>Taxonomies, compliance categories, and routing</td>\n      <td>Misses documents that use different wording than the tag list</td>\n    </tr>\n  </tbody>\n</table>"} />

Metadata indexing answers "which documents match these conditions?" Full-text indexing answers "which documents mention this?" Semantic search over embeddings is a further layer built on the full text. Our [enterprise RAG guide](https://reducto.ai/blog/reducto-ingestion-rag-enterprise-scale) explains how metadata filters and vector search work together.

## Example: one document as an index record

The record below is a synthetic example. It shows how a one-page services agreement could be represented as a searchable text field plus a small metadata record.

```json
{
  "doc_id": "contracts/2025/acme-northwind-msa.pdf",
  "text": "# Master Services Agreement\n\nThis agreement is between Acme Logistics Inc. and Northwind Supply Co. ... The initial term is 24 months beginning March 1, 2025. Either party may terminate with 60 days' written notice ...",
  "metadata": {
    "document_type": "contract",
    "counterparty": "Acme Logistics Inc.",
    "effective_date": "2025-03-01",
    "term_months": 24,
    "page_count": 1
  }
}
```

The `text` field goes into a full-text index, so a search for "termination notice" finds the clause. The `metadata` fields go into exact-match, date, and number fields, so the same search can be narrowed to contracts with an effective date in 2025. The `doc_id` links every hit back to the original file.

## Manual versus automated indexing

Whether people or software do the work, indexing follows the same steps: capture the document, pull out the attributes, map them to index fields, store the record with a link to the file, and check the values that matter.

**Manual indexing** means a person reads each document and types values into index fields. It suits small volumes and unusual documents that need judgment, but it is slow and values drift between operators.

**Automated document indexing** means software reads the document, extracts the attributes, and maps them to fields. It scales to high volumes and applies the same rules to every file. The trade-off is that results depend on how well the software reads difficult inputs such as scans, multi-column pages, and tables. Automated pipelines also need a rule for sending uncertain values to a person.

Most teams use a hybrid approach: automate capture, extraction, and mapping, then review exceptions and high-stakes fields by hand. Our guide to [human review in document automation](https://reducto.ai/guides/human-review-document-automation) covers how to set that threshold.

## Prepare documents for indexing with Parse and Extract

Reducto prepares the content and metadata that go into an index. It does not replace your search engine.

- **[Parse](https://reducto.ai/parse)** returns the full document as chunks. Each chunk includes Markdown `content`, an `embed` field for retrieval, and blocks labeled by type, such as `Title`, `Section Header`, `Table`, and `Key Value`. Each block includes a page number and bounding box. Use chunk text for the full-text field and the page numbers to link search hits back to a location. See the [Parse response format](https://docs.reducto.ai/parse/response-format) and [chunking options](https://docs.reducto.ai/configs/parse/chunking-methods).
- **[Extract](https://docs.reducto.ai/extract/overview)** returns the fields you define in a JSON schema, which becomes the metadata record. Optional [citations](https://docs.reducto.ai/configs/extract/citations) attach bounding boxes and source text to each value, which helps reviewers confirm a field before it is indexed.
- **[Classify](https://docs.reducto.ai/classify/overview)** assigns a document type before extraction, so each type can use its own schema and its own metadata fields.

Parse and Extract accept PDFs, Word documents, spreadsheets, presentations, and images. The full list is in the [supported file types](https://docs.reducto.ai/upload/overview).

## Send output to a separate search index

Reducto returns JSON, and you load it into the search system you already run, such as Elasticsearch, OpenSearch, a database with full-text search, or a vector database. A few practices keep the index useful:

- Map text fields for full-text analysis and metadata fields as exact-match, date, or numeric types.
- Store the document ID and page numbers with every record.
- Re-run extraction and reindex when your metadata schema changes.

For a complete implementation, follow the [Reducto and Elasticsearch semantic search tutorial](https://reducto.ai/blog/how-to-reducto-parsing-elasticsearch-semantic-search), which walks through parsing, indexing, and querying.

## Frequently asked questions

### What is a document index?

A document index is a searchable structure that stores attributes for each document, such as metadata fields, tags, or full text, along with a pointer back to the original file.

### What is the difference between metadata indexing and full-text indexing?

Metadata indexing stores selected structured fields for filtering and exact lookups. Full-text indexing stores every word so users can search for any term. Most systems use both.

### What is automated document indexing?

Automated document indexing uses software to read documents, extract attributes, and write them to index fields without manual data entry. It usually includes a review step for low-confidence or high-stakes values.

### Does Reducto index or search documents?

No. Reducto parses documents and extracts metadata, then you send that output to your own search index. To see what your documents look like as indexable text and fields, [try them in Reducto Studio](https://studio.reducto.ai/).
