v.25.10Performance Improvement

Improved performance of building text index

Improved performance of building text index for documents that contain mostly non-frequent tokens. #87546 (Anton Popov).