Indexes
Discover which collections are indexed by our search engine.
Available indexes
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
The Algolia data model for these collections largely mirrors the Directus data model, with a few key differences.
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.
Many-to-Many Relations
|
Collection |
Fields Included |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Many-to-One Relations
|
Collection |
Fields Included |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Synced and unsynced fields
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:
|
Collection |
Unsynced fields |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Searchable Attributes, Filtering, and Faceting
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.
|
Collection |
Facetable Attributes |
Searchable Attributes |
|
articles |
|
|
|
educational_institutions |
|
|
|
faqs |
|
|
|
podcast_episodes |
|
|
|
podcast_shows |
|
|
|
programs |
|
|
|
regional_education_desks |
|
|
|
sectors |
(none) |
|
|
testimonials |
|
|
|
videos |
|
|
Special Fields
Some collection fields include specialized handlers and mappings. These are outlined below.
Geo Data
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.
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.