flexsearch icon indicating copy to clipboard operation
flexsearch copied to clipboard

Nordic characters gives strange results

Open annaskywalker opened this issue 2 years ago • 2 comments

I am using flexsearch together with a GatsbyJS plugin called gatsby-plugin-local-search, where I can pass options for flexsearch into the plugin like this:

engineOptions: { charset: "latin:extra" }

which is the same as this:

var index = new Index({ charset: "latin:extra" });

If i search for example "forhånd", I get a correct result. But I get the same result if I replace the character "å" with either ä, ö, ø or æ.

If I instead search for "forhand" get different results. It's like it doesn't seem to read the nordic characters as it should, but shouldn't that be standard in the "latin" charset?

Am I missing something?

annaskywalker avatar Dec 10 '21 14:12 annaskywalker

I am using flexsearch together with a GatsbyJS plugin called gatsby-plugin-local-search, where I can pass options for flexsearch into the plugin like this:

engineOptions: { charset: "latin:extra" }

which is the same as this:

var index = new Index({ charset: "latin:extra" });

If i search for example "forhånd", I get a correct result. But I get the same result if I replace the character "å" with either ä, ö, ø or æ.

If I instead search for "forhand" get different results. It's like it doesn't seem to read the nordic characters as it should, but shouldn't that be standard in the "latin" charset?

Am I missing something?

Hi Anna, I run into the same issue. Have you been able to solve it? Regards

nocortanipincha avatar Jun 08 '22 18:06 nocortanipincha

I am using flexsearch together with a GatsbyJS plugin called gatsby-plugin-local-search, where I can pass options for flexsearch into the plugin like this: engineOptions: { charset: "latin:extra" } which is the same as this: var index = new Index({ charset: "latin:extra" }); If i search for example "forhånd", I get a correct result. But I get the same result if I replace the character "å" with either ä, ö, ø or æ. If I instead search for "forhand" get different results. It's like it doesn't seem to read the nordic characters as it should, but shouldn't that be standard in the "latin" charset? Am I missing something?

Hi Anna, I run into the same issue. Have you been able to solve it? Regards

Hi, unfortunately not yet.

annaskywalker avatar Jun 14 '22 06:06 annaskywalker

Please contact the author of the GatsbyJS plugin. Thanks in advance.

ts-thomas avatar Oct 02 '22 15:10 ts-thomas