[feat] quick search function with typesense

This commit is contained in:
2026-02-17 12:05:56 -05:00
parent a7cd682827
commit 9b63afb342
4 changed files with 437 additions and 81 deletions

13
src/db/typesense.ts Normal file
View File

@@ -0,0 +1,13 @@
import 'dotenv/config';
import { Client } from 'typesense';
export const client = new Client({
nodes: [{
host: process.env.TYPESENSE_HOST!,
port: Number(process.env.TYPESENSE_PORT!),
protocol: process.env.TYPESENSE_PROTOCOL!,
}],
apiKey: process.env.TYPESENSE_API_KEY!,
connectionTimeoutSeconds: 2,
});