Transliteration Algolia Cyrillic Strings

Does anyone have any experience with Algolia and transliteration? For example, indices contain Cyrillic text, but the user types in Latin letters.

+3


source to share


2 answers


Unfortunately, most search engines don't natively support transliteration; the same for Algolia.

The best way to handle this use case is to enrich your objects with transliterated attributes before submitting them to a search engine.



Perhaps you can try gausby / translitit-cyrillic-russian-to-latin ?

+6


source


Just add one little clarification. Let it be said that we have one field such as a name and many names.

you can create an object like



{ 

     name: 'whatever',
     translations: {
          ru: ' ',
          he: 'οτιδήποτε',
          de: 'was auch immer'
    }
}

      

Then you will enter your desired attributes name, translations.ru, translations.he, translations.de, so that the search will return "whatever" when the user enters "without pa", for example.

0


source







All Articles