Closed egardner closed 9 years ago
As of 2d00ed2e24b82e06b066740cd06fe7cb8ade6df9 this feature is now working.
I'll write more on the solution in the near future, but the short version is:
contents.json.erb
in the Source files is a template for the full-text JSON index of the site contents. This template is generated with a lot of custom logic to structure search results in a way that I think will be most useful. This file compiles into a root-level contents.json
resource. The size is about 650KB, which is about the size of a large image. $(document).ready()
. In practice this means a delay of ~1-2 seconds after the initial page load.contentList
variable is created at the same time, which gives the Lunr index something to check against.
Client-side Search needs to be added to the catalog. Right now I think the best option is Lunr.
Proper implementation of this requires the following things: