use collection instead of list for searchApi