Limit the indexing process to a certain number of items
Limit the indexing process to a certain number of items
When you experience issues with a source containing many items or when you plan to create a large source, you may want to ensure that the configuration is adequate so that your source rebuilds or builds without errors.
However, since there are many items to process, the source rebuild may take several hours or days.
To avoid waiting for the whole process to complete, you can use the DocumentCountLimit
source parameter to have the rebuild stop after a certain number of items are indexed.
While it is useful when developing or troubleshooting a source configuration, the DocumentCountLimit
parameter is meant to be applied temporarily since it prevents you from refreshing or rescanning the source.
To limit a source rebuild to a certain number of items
|
All items that aren’t indexed during this rebuild will be deleted.
For example, if you set the Therefore, the |
-
Duplicate the source with which you experience issues.
-
Edit the source to set the Content security parameter to Specific users and groups and apply a tentative fix.
-
Save the source configuration.
-
Edit the source JSON configuration to add the
DocumentCountLimit
parameter in theparameters
section with the following JSON configuration:"DocumentCountLimit": { "Value": <NumberOfItems>
}
Replace <NumberOfItems>
with the desired number. -
Click Save and rebuild to launch the indexing process. The operation will take place until the number of indexed items is reached. Then, the rebuild operation stops.
NoteThe actual number of indexed items may be slightly different from the value you specified. However, the difference should be minor.
-
Once your fix works, apply it to the original source.
-
When you’re ready to start indexing all source items, delete the
DocumentCountLimit
object from the source JSON configuration, and then rebuild the source.