nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.54k stars 492 forks source link

How to add search with cyrillic and english characters at the same time using gatsby-plugin-flexsearch? #318

Closed VitaliyHrabovych closed 2 years ago

VitaliyHrabovych commented 2 years ago

I did step by step through this guide here and search works great with eng characters but doesn't work with cyrillic. I saw solutions for React plugin but did not for gatsby. So, how can I add search with cyrillic in gatsby-plugin-flexsearch

gatsby-config.js

resolve: 'gatsby-plugin-flexsearch',
      options: {
        languages: ['en'],
        type: 'Mdx',
        fields: [
          {
            name: 'title',
            indexed: true, 
            resolver: 'frontmatter.title',
            store: true
          },
          {
            name: 'slug',
            indexed: false,
            resolver: 'fileAbsolutePath',
            store: true,
          }
        ]
      }
ts-thomas commented 2 years ago

Please message the author of this plugin. Sorry I cant help you.