codicille / edsa

Web-based and multi-devices e-book reader.
Other
7 stars 0 forks source link

Search #19

Closed j15e closed 11 years ago

j15e commented 11 years ago

Tombé sur ça : http://lunrjs.com/

 Full-text search would be pretty dumb if you had to build the index every time, and Lunr makes it really easy to serialize and deserialize the index itself:

var serializedIndex = JSON.stringify(index1.toJSON()) var deserializedIndex = JSON.parse(serializedIndex) var index2 = lunr.Index.load(deserializedIndex)

j15e commented 11 years ago

Won't do this for now as you can search with your browser and table of content will help to navigate content too.