schools index is a reference dataset of schools held in Discovery. Unlike the profiles and products indexes, it is not built from Omneo records: it is a lookup list, used for things like a school picker on a sign-up form or a school field on a Profile.
The index is optional. Contact your Omneo account manager to have it enabled and populated on your tenant.
Minting a token for the index
Includeschools in the rules object. Because the dataset is public reference data rather than customer data, an unrestricted rule is normally correct.
Searching
q with only a filter is valid, which is what you want for a cascading picker where the user chooses a state and then browses the schools in it.
Index reference
- Primary key:
id - Searchable attributes: all attributes
Filterable attributes
Only these attributes can appear in afilter expression or be requested as a facet.
Filter examples:
Sortable attributes
Finding the values an attribute can take
The values in this dataset vary by region and by how the index was populated, so read them from the data rather than hard-coding them. Request the attributes as facets:facetDistribution lists every value with its document count, which is exactly what a filter menu needs.
curl example
JavaScript example
401 or 403.