JSPM

meilisearch-medical-synonyms

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q61219F
  • License GPL-3

List of common medical terms to be used in a meilisearch index as a synonym list

Package Exports

  • meilisearch-medical-synonyms
  • meilisearch-medical-synonyms/build/index.es.mjs
  • meilisearch-medical-synonyms/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (meilisearch-medical-synonyms) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 # ....