# Content Indexing Pipeline

Users can choose one of the following two methods to index documents in content insight from their applications.

1\.     Use the REST API for uploading document and additional metadata. The metadata is also indexed and can be used to augment the content search. Alternatively, the metadata can be searched without including the content

2\.     Publish the message which includes the document metadata and path to a Message Queue. The engine can then retrieve the document from the content store and index it along with the other metadata in the message. The results are published back to another queue.

![](/files/-La4a7_Stci8VXRZXeDt)

Once the data is available in the index store, the REST based search APIs can be used to retrieve the document id and other related information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.invariant.io/content-insight/overview/content-indexing-pipeline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
