[AR-63] speed up createInitialIndex() in search service
(cherry picked from commit fb2705d)