Make search extendable.

Also make highlighting or otherwise displaying search results customizable.
Also make displaying selected item differently in template possible