> 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

## 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="/files/QSkCOr7VI2AwGbSOAeK3" 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="/files/I9Y2JXBBdNyxrEkGlziK" 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
