> For the complete documentation index, see [llms.txt](https://kb.stoque.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.stoque.com.br/zeevdocs/criar-bibliotecas/o-que-sao-regras-de-negocio/regra-de-indexacao-de-conteudo.md).

# Regra de indexação de conteúdo

Ela é responsável por extrair o conteúdo dos arquivos, possibilitando a localização de arquivo através do seu conteúdo.

## Visão geral

Essa regra faz parte das que rodam em background, conforme comentamos nessa [página](/zeevdocs/criar-bibliotecas/o-que-sao-regras-de-negocio.md), ou seja, sua configuração não reflete a interface de algum módulo; por isso, é chamada "regra do tipo **Serviço"**.

Ela é responsável por extrair o conteúdo dos arquivos que não passaram pelo [OCR ](/zeevdocs/customizacoes/ocr-+-expressao-regular.md)nativo do Zeev docs, seja por não terem uma extensão suportada (como um arquivo .txt), ou pela biblioteca não utilizar o OCR.&#x20;

O cenário mais comum de uso dessa regra, é quando se deseja realizar [busca por conteúdo de arquivo](/zeevdocs/dia-a-dia-no-zeev-docs/como-consultar-documentos/com-realizar-busca-por-conteudo-de-arquivos.md). Essa regra extrai o conteúdo dos arquivos, possibilitando sua localização através desses conteúdos:

<figure><img src="https://content.gitbook.com/content/OIJt1dLjDh8tPhhAr4Od/blobs/md83BMBEKBqiOe0IuS8w/image.png" alt=""><figcaption><p>Campo de busca por conteúdo de aquivos</p></figcaption></figure>

A configuração dessa regra se resume em definir a quantidade de documentos que serão processados a cada ciclo de execução do serviço:

<figure><img src="https://content.gitbook.com/content/OIJt1dLjDh8tPhhAr4Od/blobs/UCz9dP60seIMspnPkaFN/image.png" alt=""><figcaption><p>Configuração da regra</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.stoque.com.br/zeevdocs/criar-bibliotecas/o-que-sao-regras-de-negocio/regra-de-indexacao-de-conteudo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
