> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/log-settings/fulltext-search-settings.md).

# 全文搜索设置

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-97d97a9077de58cf5b7bb30cfd4d838b33cc1597%2Ffulltext_search_settings.png?alt=media" alt="沙盒环境中的全文搜索设置，显示一个说明需要启用该模块的对话框，以及“前往模块”和“立即启用”按钮"><figcaption><p>全文搜索处于禁用状态时，此对话框会说明后续步骤。</p></figcaption></figure>

全文搜索设置用于配置 DocBits 要索引的内容，以及如何让用户在文档、ERP 主数据和模板中搜索这些内容。启用 **全文搜索模块**之前，设置页面会显示模块要求对话框。如需了解面向用户的查询语言，请参阅[全文搜索](/chinese/guan-li-yu-she-zhi/settings/document-processing/module/fulltext-search.md)。

## 前提条件

必须在 **设置 → 模块 → 仪表板与分析 → 全文搜索**中激活全文搜索模块。如果未启用该模块，对话框会提供以下三个操作：

* **帮助 (?)** — 在新标签页中打开全文搜索文档，然后再更改任何设置。
* **前往模块** — 打开仪表板与分析模块设置，以查看配置。
* **立即启用** — 打开订阅对话框。启用模块前，请查看并确认该对话框；仅点击此按钮并不会启用模块。

模块激活后，即可使用设置页面。

## 页面布局

设置页面分为三个标签页，每个标签页对应全文搜索可索引的一种内容类型。

### 文档标签页

“文档”标签页包含与已处理文档索引相关的所有设置：

* **索引统计信息** — 已索引和待索引的文档总数，可按需刷新。
* **向量偏好设置** — 三个组织级开关，用于控制文档是否在文本索引之外同时进行向量索引。向量索引用于支持 `vector:` 查询模式和“查找相似项”功能。
* **重新索引操作** — 启动完整或增量重新索引。重新索引期间，可以实时查看进度（每分钟处理的文档数、预计剩余时间）、当前流状态以及最近一次失败情况（如有）。
* **同步诊断** — 按需运行诊断，用于排查索引与底层文档存储似乎不同步的情况。

重新索引不会造成破坏——重建新索引期间，现有搜索仍可正常使用。

### ERP 标签页

“ERP”标签页用于控制 ERP 主数据的索引，包括供应商、客户、物料及类似实体。每个实体都有自己的开关：

* **索引** — 为该实体建立文本索引，使其可在仪表板中搜索。
* **向量** — 为该实体建立向量索引，使其可通过语义查询进行匹配。

使用列表顶部的 **全部切换**操作，一次性为所有实体应用相同的开启或关闭状态。索引会在后台启动；每一行上的指示标记会显示索引是否正在进行。

### 模板标签页

“模板”标签页会列出全文索引已知的模板版本。重新部署后，可通过此视图确认所依赖的模板版本是否已包含在索引中。

## 索引内容

启用并完成配置后，全文搜索可让用户：

* 搜索所有文档内容，而不只是元数据字段。
* 根据上传文件中的文本查找文档。
* 使用高级搜索运算符执行精确查询。
* 直接从仪表板访问搜索结果。
* 在相应内容类型启用向量索引后，使用语义搜索（`vector:`前缀）。

有关完整查询语言参考（包括范围查询、智能筛选器和 AI 搜索模式），请参阅[全文搜索](/chinese/guan-li-yu-she-zhi/settings/document-processing/module/fulltext-search.md)模块页面。


---

# 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://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/log-settings/fulltext-search-settings.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.
