refactor getSearchQueryOptions()