knnCollector is faster than topNCollector
Author: huhu007Created Nov 22, 2025Updated Nov 22, 2025
when search knn with text filter, it uses EligibleCollector first, and does knn query by filtered result from EligibleCollector, but when only search text with the same text condition, it uses TopNCollector, which is much slower. So how can i make text search faster than KNNWithFilter SearchRequest?
Source: blevesearch/bleve