travis-r6s / gridsome-plugin-flexsearch

Add lightning fast search to Gridsome with FlexSearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not work with Cyrillic

hqdrone opened this issue · comments

commented

Hi, I'm from Russia and want to add flexsearch plugin on my Gridsome blog(https://frontips.ru/) but it's not work with Cyrillic encode

If I type text on English language I get result but if I type on Russian language Post Title not founding

{
  use: 'gridsome-plugin-flexsearch',
  options: {
    searchFields: ['title'],
    collections: [
      {
        typeName: 'Post',
        indexName: 'Post',
        fields: ['title']
      }
    ]
  }
}

How can I solve this problem?

Hello @hqdrone

Please check the FlexSearch documentation for this - for example nextapps-de/flexsearch#51.

You can also probably follow similar steps to #23