@lde/search-typesense
v0.27.4
Published
Typesense implementation of the @lde/search SearchEngine port: collection-schema builder, query compiler, label-resolving result reconstruction, and blue/green index lifecycle. Engine-specific (Typesense) but domain-agnostic.
Readme
@lde/search-typesense
Typesense engine adapter for the engine- and
domain-agnostic @lde/search core. Engine-specific (Typesense) but
domain-agnostic – you supply a SearchType; this package never names your
domain.
Installation
npm install @lde/search-typesenseimport { Client } from 'typesense';
import { BlueGreenRebuild } from '@lde/search-typesense';
const client = new Client({
nodes: [{ host, port, protocol: 'https' }],
apiKey,
});
// The collection is named from the type: `Dataset` → `datasets`.
const writer = new BlueGreenRebuild(client, DATASET);
// Standalone use; under @lde/pipeline the Pipeline drives this lifecycle.
const run = await writer.openRun(context);
await run.write(dataset, documents);
await run.commit();Documentation
See the full documentation.
