You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That way we don't end up searching things like the URL or image of a page (all image URLs have web-dev in them, so searching "web" can pull up any post).
This let's us prioritize certain pages, such as learning paths, and de-prioritize others, such as /tags, /authors, etc...
Define a new indexed date.
Used to determine which content has not been updated and therefore doesn't exist anymore.
Add new indexed date to all entries.
Index all new pages.
Remove any items that were indexed prior to that date.
Algolia is intentionally very unstructured.
It just indexes JSON objects keyed by an objectID field, which in our case, is the MD5 hash of the page's URL.
Every other field is indexed somewhat generically—Algolia doesn't care whether it's a number, full-text, a Date, etc.
Search
The search side is implemented as a Web Component here.
Its public keys are accessible inside that component.