If someone finds this question later, I am interpreting this question to mean that they want a user to be able to selectively choose countries that they're interested in, not that a user is restricted by which country they're in.
This seems most feasible not with search, but with the category options. I would add a category "country" and label my APIs through Exchange (either the UI, or using the exchange API). I would then add my country category as one of the possible dropdowns enabled in the API Catalog.
Alternately, if it absolutely had to be enabled through the Search box, I would add a custom field "country", add values to that field for each API, then enable searching in custom fields. I feel like this is both less intuitive to the end user though and more trouble to implement, since custom fields can only be modified via API.
1 resposta