Skip to content

List of common names and nicknames to be used in a meilisearch username index as a synonym list

Notifications You must be signed in to change notification settings

atlas-bi/meilisearch-name-synonyms

Repository files navigation

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

About

List of common names and nicknames to be used in a meilisearch username index as a synonym list

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •