Revert "Detempletize search()"

This reverts commit 229095db61fa7315be23f8e0ce99c1a3dfe47645.