Skip to content

Implement a search feature #123

@justinbmeyer

Description

@justinbmeyer

Prerequisites:

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": { ... },
   ...
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions