Allowed search to have optional type and index parameters