Je hebt Javascript nodig om deze website te kunnen gebruiken. Pas je browserinstellingen in om verder te gaan!
Search

Indexes

See the indexed collections, their searchable fields, facets, and Algolia-specific shapes.

Start here before building filters or rendering search hits. Algolia mirrors Directus closely, but it flattens relations and omits fields that are unsuitable for search.

Choose an available index

The following collections are indexed by Algolia. If you have access to a collection in Directus and permission to use Algolia, you can also access that collection’s indexed data in Algolia:

  • articles
  • faqs
  • sectors
  • videos
  • testimonials
  • podcast_episodes
  • podcast_shows
  • programs
  • educational_institutions
  • regional_education_desks
  • locations

The Algolia data model for these collections largely mirrors the Directus data model, with a few key differences.

Understand relational data

Only content collections are indexed in Algolia. Other collection types—such as categorization or metadata collections—are not indexed directly. Instead their relational data is embedded into the indexed content items.

For example, the articles collection includes an authors property, which contains an array of author objects.

All junction tables are flattened during sync. Related items are included only partially—each related record exposes a limited set of fields defined in the relation mappings. These mappings determine which fields Algolia receives for both many-to-many and many-to-one relationships.

The following mappings define which properties of related items are synced into Algolia. It does not matter in which collection the related item is embedded; the fields included are always the same.

Use flattened many-to-many relations

CollectionFields Included
audiencesid, title
authorsid, name, image
documentsid, title, asset
faqsid, question
phasesid, title
qualificationsid, name, path
rolesid, name, path
sectorsid, title, slug
sourcesid, title
topicsid, name, path
tracksid, name, path
articlesid, title, path
podcast_showsid, title, path, artwork
podcast_episodesid, title, path
testimonialsid, title, path
videosid, title, path
programsid, title, path, educational_institutions.educational_institutions_id.title, educational_institutions.educational_institutions_id.logo
profilesid, first_name, last_name, path, image
podcast_hostsid, first_name, last_name, image
educational_institutionsid, title, path, logo, type
locationsid, title, url, address, zip, city, country, location_geopoint

Use mapped many-to-one relations

CollectionFields Included
topicsid, name, path
news_segmentsid, title
podcast_showsid, title, path, artwork, podcast_status, creator_name
seasonsid, season_number, year, show.title
locationsid, title, url, address, zip, city, country, location_geopoint, opening_hours.id
areasid, title, area_center, area_bounds, area_inner
program_formsid, url, description, track.name
podcast_episodesid, title, path, season.season_number, show.title, show.artwork, publication_date, episode_number

Know which fields are synced

Most fields in a collection are synced to its Algolia index. Some fields, however, are excluded and will never appear in an Algolia record, regardless of collection:

  • seo
  • body (see Special Fields)
  • description (when using the Content Document field type, see Special Fields)

Certain collections also have additional excluded fields:

CollectionUnsynced fields
educational_institutionshovi_id, kiesmbo_id, brin_code
podcast_episodestranscript_raw, transcript_string_with_speakers, speaker_map
programshovi_id, kiesmbo_id, study_number, program_forms.description
regional_education_desksphone_availability, consultation_service_description
videostranscript_raw, transcript_string_with_speakers, speaker_map, chapters

Filter, facet, and search supported attributes

Algolia allows you to refine search results using filters and facets. Faceting enables users to narrow results based on specific attribute values—for example, filtering articles by sector or program type. Each index defines which attributes are available for faceting, and these vary per collection.

In addition, each collection specifies which of its attributes can be searched when sending a query value with you request to Algolia.

CollectionFacetable AttributesSearchable Attributes
articlesaudiences.title, authors.name, phases.title, qualifications.name, roles.name, sectors.title, topics.name, tracks.name, englishtitle, summary, description, bodyString, topics.name, roles.name, qualifications.name
educational_institutionstypetitle, type, bodyString
faqsaudiences.title, phases.title, sectors.title, topics.namequestion, bodyString, topics.name
podcast_episodesaudiences.title, phases.title, roles.name, sectors.title, topics.name, tracks.name, show.titletitle, show.title, bodyString, transcript_string, guests.first_name, guests.last_name
podcast_showsaudiences.title, phases.title, sectors.titletitle, creator_name, bodyString, hosts.first_name, hosts.last_name
programsqualifications.name, roles.name, sectors.title, educational_institutions.title, type, level, degree, program_forms.tracks.nametitle, program_forms.bodyString, qualifications.name, educational_institutions.title, type, level, degree
regional_education_deskssectors.title, has_consultation_service, orientation_activity_types, content_typestitle, regions, cities_municipalities, bodyString
sectors(none)title, alt_names, description, introduction, roles_content, routes_content, salary_content, costs_content
testimonialsaudiences.title, authors.name, phases.title, roles.name, sectors.title, topics.name, tracks.nametitle, summary, description, bodyString, topic.name, authors.name, roles.name
videosaudiences.title, phases.title, roles.name, sectors.title, topics.name, tracks.nametitle, transcript_string, profiles.first_name, profiles.last_name, bodyString
locationshas_programs, has_educational_institutions, has_regional_education_desks(none)

Handle special fields

Some collection fields include specialized handlers and mappings. These are outlined below.

Algolia supports geospatial search, filtering and sorting, which is especially useful when working with navigator collections containing location data.

For regional_education_desks, the _geoloc property contains an array of coordinate pairs. This array represents a grid of individual points describing the desk’s area of operation. These points have no real-world physical meaning; they exist solely to enable filtering for cases where the area of operation falls within a radius of size X relative to the user’s location.

This is a workaround for Algolia’s geo search limitations, which prevent comparing or filtering two areas or polygons. See advanced usage for implementation details and examples.

Search flattened content documents

Fields of type Content Document contain deeply nested, tree-structured JSON. Algolia does not index such objects effectively.

To ensure reliable search behavior, these documents are synchronized as a flat text string without markup. The resulting string is stored in the bodyString property, which is searchable by default.

Keep in touch with the latest

Sign up for our monthly deep dives - straight to your inbox.