diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-05 13:36:38 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-05 13:36:38 +0200 |
commit | 86848e7acb5e5308297a0e4aaf0a164e7f9bf5f2 (patch) | |
tree | 745ec1374b3a051fb5c0660c4f4a6154e9abc70a /packages/gitbook-plugin-lunr/src/reducer.js | |
parent | 9ce3646d6e0d10035b6528e5384189fbed3d18c6 (diff) | |
download | gitbook-86848e7acb5e5308297a0e4aaf0a164e7f9bf5f2.zip gitbook-86848e7acb5e5308297a0e4aaf0a164e7f9bf5f2.tar.gz gitbook-86848e7acb5e5308297a0e4aaf0a164e7f9bf5f2.tar.bz2 |
Fix format of lunr results
Diffstat (limited to 'packages/gitbook-plugin-lunr/src/reducer.js')
-rw-r--r-- | packages/gitbook-plugin-lunr/src/reducer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-lunr/src/reducer.js b/packages/gitbook-plugin-lunr/src/reducer.js index 48c3c23..7e317c4 100644 --- a/packages/gitbook-plugin-lunr/src/reducer.js +++ b/packages/gitbook-plugin-lunr/src/reducer.js @@ -4,6 +4,10 @@ const { Record } = GitBook.Immutable; const { TYPES } = require('./actions'); +/* + We store the lunr index an the document index in the store. + */ + const LunrState = Record({ idx: null, store: {} |