statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.65k stars 236 forks source link

Lunr module #71

Closed daveaglick closed 8 years ago

daveaglick commented 9 years ago

Lunr is a client-side search engine: http://lunrjs.com/. It's possible to create the data store beforehand, serialize it to JSON, and then read it in at runtime. The idea here is that the module would process all the input documents and create the appropriate JSON document that represents a Lunr store as an output document. This document could then be saved and loaded into Lunr on the client. Not sure if Lunr will actually be needed to generate the Json - may be possible to reverse engineer the format and just generate it standalone. If Lunr is needed for some reason (I.e. to get the pipelines right), could look at Jurassic or Node/Edge.js.

reliak commented 8 years ago

Is anybody working on this? I'm about to dive in to generate a searchindex file and js-code to provide a static site search with lunr.js

daveaglick commented 8 years ago

Holy cow! It would be awesome if you made headway on this one.

I'm working hard on using Wyam for generating documentation sites, but searching the docs (or even just things like class names) is an area I'm missing. I would love to fill in that gap.

daveaglick commented 8 years ago

Resolved by #118