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

1.1.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-name-synonyms

Usage

Assuming you have a search index for people:

import { MeiliSearch } from "meilisearch";
import { nameSynonyms } from "meilisearch-name-synonyms";

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

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

await userIndex.updateSynonyms(nameSynonyms);

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

Sources

Name list is provided by https://github.com/carltonnorthern/nicknames/blob/master/names.csv and licensed under Apache-2.0

/meilisearch-name-synonyms/

    Package Sidebar

    Install

    npm i meilisearch-name-synonyms

    Weekly Downloads

    8

    Version

    1.1.0

    License

    GPL-3

    Unpacked Size

    580 kB

    Total Files

    7

    Last publish

    Collaborators

    • sur.la.route