This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect detector count in stats APIs (#129)
Previously, we use index stats to retrieve doc count. But the stats are emitted by Lucene and include nested doc count. Since our detector index uses nested type for the feature_attributes field, stats API would overcount the number of docs. This PR restores to use search all of the index docs and fetch total hits as doc count. Testing done: * manually verified by starting a local cluster
- Loading branch information