fergiemcdowall / search-index

A persistent, network resilient, full text search library for the browser and Node.js
MIT License
1.38k stars 149 forks source link

Fix `docs/examples` #513

Closed eklem closed 3 years ago

eklem commented 3 years ago

Fix all the code examples to work with the newest version of search-index (v2.1.0). Valuable to get people going I think.

eklem commented 3 years ago

https://github.com/fergiemcdowall/search-index/issues/512

eklem commented 3 years ago

Progress here https://github.com/fergiemcdowall/search-index/tree/fix-examples/docs/examples

eklem commented 3 years ago

Two questions, @fergiemcdowall

  1. The last example in BUCKETS.js I don't know how to express with newest version of search-index.
  2. Is GET still a thing (GET IDs or something) ?
fergiemcdowall commented 3 years ago

I went ahead and fixed BUCKETS.js. No GET is no longer a part of the API (although it is still available as _GET).

The rest of the examples should now work