publish: Remove unused search code.

generated from commit 60dc935716ab0bcc0dc07776a0a51b0b19d56b32