Unified Storage/Search: Add max count config for indexing (#107255)

* Add max count config for indexing
* Build empty index when max count is exceeded
* Address linting
* Refactor buildIndexes
* Add test for max count threshold
* Update test doc comments
* Refactor TestBuildIndexes_MaxCountThreshold to not use mock framework
* Rename mocks used in TestBuildIndexes_MaxCountThreshold

* Refactor mockResourceIndex

* Test setting of indexing threshold configs

* Tweak comments, log

* Fix logging in buildEmptyIndex

* Export and reuse TestDocumentBuilderSupplier

* Reuse MockResourceIndex
This commit is contained in:
Arati R. authored and GitHub committed 2025-06-27 14:00:39 +02:00
1 parent 3020794b60
commit 0982cfd9a0
10 files changed
+356 -76

No files matched your search

+1
View File
@@ -563,6 +563,7 @@ type Cfg struct {
IndexMaxBatchSize int
IndexFileThreshold int
IndexMinCount int
IndexMaxCount int
IndexRebuildInterval time.Duration
IndexCacheTTL time.Duration
EnableSharding bool