Search engines need to store their data, mainly a set of indexes, On the client-side, things get
at little complicated, specially on devices with little memory or bad/old browsers. Here are the
different storage flavours supported by the library.
memory index: stores all the data in memory (actually a javascript object). The advantages of
this index are compatibility with all browser, and obviously its speed. However, the index needs to be
built every time the application loads, and it consumes as much memory as the database size itself.
websql: This is a disk-based index based on the deprecated websql api. It's main drawback is that
it is only supported on a few browsers, and it's not developped anymore.
indexeddb
You can try to store data by typing text here: every non-blank line will be indexed as a document,
the key is the line number.