meilisearch-medical-synonyms
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Meilisearch Name Synonyms

This is an importable list of nicknames to be used as a meilisearch synonym list.

Installing

npm i meilisearch-medical-synonyms

Usage

Assuming you have a search index for people:

import { MeiliSearch } from "meilisearch";
import { medicalSynonyms } from "meilisearch-medical-synonyms";

const client = new MeiliSearch({ host: "http://localhost:7700" });

const userIndex = client.index("reports");

await userIndex.updateSynonyms(medicalSynonyms);

/// or if you need to add in a few more
await userIndex.updateSynonyms({ ...medicalSynonyms, superman: ["wow"] });

Sources

Synonyms are kept in synonyms.txt file as csv style, but with comment lines beginning with # ....

Dependencies (0)

    Dev Dependencies (22)

    Package Sidebar

    Install

    npm i meilisearch-medical-synonyms

    Weekly Downloads

    16

    Version

    1.2.0

    License

    GPL-3

    Unpacked Size

    59.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • sur.la.route