[TASK] indexed_search: Fix warnings, remove bogus files

Fix two warnings and remove unneeded files.