PouchDB Search v2 (work in progress)