-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Prerequisites:
- - Design for search and switching to other CanJS versions #120
- - tom needs to design the search results
The implementation of this is to write out the docMap.json somehow ... or maybe a smaller version with just the name, titles, and descriptions of everything in the docMap. Here's where we did this in the past: https://github.com/bitovi/documentjs/blob/b1c5d27afe3fcd5aaaf797417b44af8212016985/site/searchdata.js
When the client loads, it should make a request for that, and use it to search.
As the docMap can still be really big ... 100s of entries, and searching it would be slow ... we'd pre-process some results in previous versions of DocumentJS.
Here's where it happened in the client: https://github.com/bitovi/documentjs/blob/v3.2.0/jmvcdoc/models/search.js#L171
It looks like what we would do is keep a result tree like:
{
"a": {
"b": ["abra","abba"],
"c": ["accent", "acura"]
},
"b": { ... },
...
}