Welcome to the Swiftype smart 404 page example app. This application responds with a 404 for any path except this one.
On the 404 page, a search is automatically executed against the Swiftype Documentation based on the URL.
If there are results, they are shown. Either way, there is a search box for the user to find what they were looking for.
You can find the source code for this application on GitHub in the swiftype/smart-404-example repository.
Check out the
views/not_found.erb file to see how it works.
To read more about making a smart 404 page, read our smart 404 page tutorial.
Try some examples: