---
title: ContentSearchMaxScannedDocuments System Parameter – Newest Documents a Content Search Reads
description: The ContentSearchMaxScannedDocuments System Parameter limits how many of the newest documents a Nodinite Content Search reads with a regular expression, or to find words hidden by formatting or character entities. Default 2000.
---

# ContentSearchMaxScannedDocuments - System Parameter

<sup><span class="nodinite-new-badge">New 7.12</span></sup>

**ContentSearchMaxScannedDocuments** is an integer [System Parameter][System Parameters] that limits how many documents [Content Search][] reads in two cases: a **Regular expression** search, and the part of a **Words** or **Phrase** search that looks for a word hidden by formatting or a character entity. Content Search is the **Search content** dialog for [Articles][], [Snippets][], [Templates][], and [Document Profiles][]. The [Web API][] reads it for every such search.

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| Property | Value |
| --- | --- |
| Key | `ContentSearchMaxScannedDocuments` |
| Data type | integer (the newest documents a search reads) |
| Default | `2000` |
| Read by | [Web API][] |
| Takes effect | At the next search when saved on the System Parameters page; within about 15 seconds in other processes, such as the [MCP Endpoint][]; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 7.12 |

<h2 id="how-it-works"><i class="fal fa-gears" aria-hidden="true"></i> How It Works</h2>

* Words and Phrase searches narrow the documents in the database first. A regular expression can't be narrowed that way, so the search reads the newest **ContentSearchMaxScannedDocuments** documents and matches the expression against them.
* A word the reader sees can be hidden in the stored text: split by formatting (**Order** in bold followed by *Number*) or written with a character entity (`M&uuml;nchen`). Words and Phrase searches look for such words in the newest **ContentSearchMaxScannedDocuments** documents only. Documents that hold the word as written are found in all documents, as before.
* When a regular-expression search left documents out, the line above the results says **only the newest N documents were searched**. When only the look for hidden words was cut, no message is shown.
* Every regular expression still has a one-second time limit; a slower expression is stopped, whatever this value.

See [Content Search - Limits][] for all three limits together.

![System Parameters page filtered on ContentSearch, showing ContentSearchMaxMatchesPerDocument 10, ContentSearchMaxResults 100, and ContentSearchMaxScannedDocuments 2000 with their descriptions (7.12)][1]  
*Filter on `ContentSearch` to see the three Content Search limits together; this page covers **ContentSearchMaxScannedDocuments**.*  

<h2 id="choosing-a-value"><i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value</h2>

Keep the default. When a regular-expression search reports that only the newest documents were searched, try **Words** or **Phrase** first: they search every document for the word as written. Raise the value when your Repository has more documents than the limit and you rely on regular expressions; each such search then reads more documents and takes longer.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-magnifying-glass" aria-hidden="true"></i> [Content Search][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-sliders" aria-hidden="true"></i> [ContentSearchMaxResults][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [ContentSearchMaxMatchesPerDocument][]  
* <i class="fal fa-key" aria-hidden="true"></i> [System Parameters][]  
* <i class="fal fa-cloud" aria-hidden="true"></i> [Web API][]  
* <i class="fal fa-robot" aria-hidden="true"></i> [MCP Tool Reference][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/SP/SystemParameters_ContentSearch.png

[Articles]:https://docs.nodinite.com/repository-model/knowledge-base-articles/overview/
[Content Search]:https://docs.nodinite.com/repository-model/knowledge-base-articles/features/content-search/
[Content Search - Limits]:https://docs.nodinite.com/repository-model/knowledge-base-articles/features/content-search/#limits
[ContentSearchMaxMatchesPerDocument]:https://docs.nodinite.com/administration/settings/system-parameters/contentsearchmaxmatchesperdocument/
[ContentSearchMaxResults]:https://docs.nodinite.com/administration/settings/system-parameters/contentsearchmaxresults/
[Document Profiles]:https://docs.nodinite.com/repository-model/knowledge-base-articles/features/document-profiles/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[MCP Endpoint]:https://docs.nodinite.com/ai/mcp-endpoint/
[MCP Tool Reference]:https://docs.nodinite.com/ai/mcp-tool-reference/repository-tools/#content-search
[Snippets]:https://docs.nodinite.com/repository-model/knowledge-base-articles/features/snippets/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Templates]:https://docs.nodinite.com/repository-model/knowledge-base-articles/features/templates/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/