askorama / orama

🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!

Home Page:https://docs.orama.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Having trouble using persistent storage on own server

flatsiedatsie opened this issue · comments

Describe the bug

For privacy protection reasons I cannot use Orama from a CDN. So I've been trying to load Orama from my own server.

For Orama itself this works fine. But the persistant storage plugin is giving me much more trouble. It seems to rely on msgPack and dPack, for example:

import { decode, encode } from '@msgpack/msgpack';

But I can't get Orama to detect those once installed locally.

Is there a one-file webpacked version available perhaps? Or is there some way to download the files that are on the CDN as a zip file?

To Reproduce

Not relevant

Expected behavior

Not relevant

Environment Info

Localhost / webserver

Affected areas

Initialization

Additional context

No response

*discovers <script type="importmap">

// *discovers they don't work in Web Workers

Any hints on a simple approach to to breathing life into the persistance feature would be much appreciated.

Would it be a bad idea to do a search for 'everything' in the database, and storing the output?

I discovered you don't need the persistence plugin to import and export the data to a JSON serializable format. That's already baked into the main library.