Algolia is a search and discovery API for building powerful and fast search functionalities into websites and applications. It currently powers all the keyword-searchable pages on the site.
This section will outline how the new Cornell AAP site implements search with Algolia. For broader Algolia how-tos and tutorials, we recommend referring to their official documentation.
Overview
These are all the pages on the site that are powered by Algolia:
| Page | PHP Page Template | Searchable Content | Corresponding Algolia Index Where <env> is the current environment (development, staging, or production) |
|---|---|---|---|
| Global Search | search.php | News Pages People Events Student Work Faculty Work Resources Labs & Research Groups | <env>_global_search |
| News Index | page-news-archive.php | News | <env>_news_search |
| People Directory | archive-person.php | People | <env>_person_search |
| Upcoming Events Index | page-event-future-archive.php | Events | <env>_event_search |
| Past Events Index | page-event-past-archive.php | Events | <env>_event_search_start_timestamp_desc |
| Student Work Index | page-student_work_index.php | Student Work | <env>_student_work_search |
| Faculty Work Index | archive-faculty_work.php | Faculty Work, News with the “Faculty News” category | <env>_faculty_work_search |