https://github.com/erfanium/deno_sonic
Sonic search engine driver for Deno
https://github.com/erfanium/deno_sonic
Last synced: 8 months ago
JSON representation
Sonic search engine driver for Deno
- Host: GitHub
- URL: https://github.com/erfanium/deno_sonic
- Owner: erfanium
- Created: 2021-07-21T08:59:07.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-22T11:52:22.000Z (almost 5 years ago)
- Last Synced: 2024-12-20T16:49:06.193Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://deno.land/x/deno_sonic@0.1.0/mod.ts
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deno_sonic
Sonic search engine driver for Deno. With async support.
## Status
### Implemented parts
- **search mode** (query, suggest)
- **ingest mode** (push, pop, count, flush)
### Not implemented parts
Check `bug` issues.
## Example
```ts
import { Search } from "../mod.ts";
const search = new Search();
// search.client.debug = (...f) => console.debug(...f);
await search.connect({
hostname: "127.0.0.1",
port: 1491,
password: "SecretPassword",
});
console.log("Connected");
const result = await search.query({
collection: "messages",
bucket: "default",
terms: "Dragon",
});
console.log(result);
search.close();
```