Update SearchApi.php

Changed validator to match service container parameter