Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Lyra JS #27

Closed
paulocoutinhox opened this issue Mar 27, 2023 · 2 comments
Closed

Support for Lyra JS #27

paulocoutinhox opened this issue Mar 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@paulocoutinhox
Copy link

Hi,

I have a suggestion to a feature.

You can use Lyra JS (https://lyrajs.io/) that is a javascript engine for document index like elasticsearch and you don't need WebAssembly.

import { create, insert, search } from "@lyrasearch/lyra";
const db = await create({
  schema: {
    quote: "string",
    author: "string",
  }
});
await insert(db, {
  quote: "I feel as if I'm always on the verge of waking up",
  author: "Fernando Pessoa"
});
const results = await search(db, {
  term: "waking up"
});

Maybe the plugin can create the index and the JS search function can use it.

@paulocoutinhox paulocoutinhox added the enhancement New feature or request label Mar 27, 2023
@justinmayer
Copy link
Contributor

I always envisioned that this plugin could eventually have a setting that allows the user to choose their preferred search engine. So while I originally chose Stork because it is an excellent search engine, if anyone wants to submit a pull request that adds support for alternative search engines, I think that such enhancements would be useful additions to the project.

@justinmayer
Copy link
Contributor

I'm closing this issue in favor of #35, which is more broadly-focused on alternatives to Stork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants