question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reusing previously generated index file

See original GitHub issue

Description

I intend to use Fuse with Google firebase

in the doc:

const myIndex = Fuse.createIndex(options.keys, books) const myFuse = new Fuse(books, options, myIndex)

we need to recollect all books and regenerate the index whenever a new book is added.

Describe the solution you’d like

is it possible to:

  • loads the old index file,
  • add one new book to it,
  • and then regenerate the new index file ?

and in this line const myFuse = new Fuse(books, options, myIndex) why do we need all books as an argument? why not use some information like an ID that is already accessible from myIndex ? as how they do it in Lunr.js

Thank you !

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tesla-catcommented, Jun 8, 2020

@krisk

and also by the way, you have the coolest github profile photo i have seen so far !

1reaction
tesla-catcommented, Jun 8, 2020

@krisk

hey thank you for teaching me this kind of fun stuff, that table looked absurd to me at the very beginning, 1000 times better than everyone else? that must be either turing’s work or an ignorant joke.

great work from you !

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reuse an Index that already created using Apache ...
It is absolutely possible. Assuming indexDirPath is the location of your lucene index, you can use the following code:
Read more >
How to Change your Default Index Page in the htaccess file
htaccess file. You can reset the File Manager settings by logging into cPanel and then going to the bottom of the screen and...
Read more >
Search indexing in Windows 10: FAQ - Microsoft Support
Indexing is the process of looking at files, email messages, and other content on your PC and cataloging their information, such as the...
Read more >
Using index files when working with Sass and @use rules
Using these index files allow us to use @forward rules in a _index. scss file so that when we load the URL of...
Read more >
create-index - GitHub
create-index program creates (and maintains) ES6 ./index.js file in target directories that imports and exports sibling files and directories. Example. > tree ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found