Skip to main content
The 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

Include schools in the rules object. Because the dataset is public reference data rather than customer data, an unrestricted rule is normally correct.
See Minting search tokens for caching and refresh behaviour.

Searching

An empty 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
Attribute names on this index are PascalCase, for example SchoolName. The profiles and products indexes use snake_case. Filters and sorts are case sensitive, so schoolName fails where SchoolName succeeds.

Filterable attributes

Only these attributes can appear in a filter expression or be requested as a facet. Filter examples:
See Running a search for the full filter expression syntax.

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:
The response’s facetDistribution lists every value with its document count, which is exactly what a filter menu needs.

curl example

JavaScript example

In browser code, request the token from your own backend rather than minting it client-side, and re-request it when a search returns 401 or 403.