fixed search to allow empty ontologies parameter