back-compat for "index" and "search" commands