Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make index the Arabic or Persian text?! #112

Closed
hamedsbt opened this issue Jul 20, 2019 · 6 comments
Closed

How to make index the Arabic or Persian text?! #112

hamedsbt opened this issue Jul 20, 2019 · 6 comments
Labels
question Further information is requested

Comments

@hamedsbt
Copy link

How to make index the Arabic or Persian text and full-text search through it ?!
I tried to add Encoding and Stemmer, but not success!

@ts-thomas ts-thomas added the question Further information is requested label Jul 23, 2019
@hmmlsystems
Copy link

@ts-thomas Love flexsearch! Thank you and keep it up.

We're also seeing issues with indexing script languages like Arabic in our tests. The problem for us is that our index includes English text as well as Arabic. So your right to left suggesting wasn't working.

If you want I can share our simple search page and data file. Thanks again.

@ts-thomas
Copy link
Contributor

Thanks a lot. Please share a simple example so I can take a look on the data. Using different configs for each field may help.

@hmmlsystems
Copy link

@texzone
Copy link

texzone commented Jan 8, 2021

As far as indexing arabic (and only arabic) text, the docs did not help. However, @ts-thomas reply in this threat here worked for me.

var index = FlexSearch.create({
    encode: false,
    rtl: true,
    split: /\s+/,
    tokenize: "forward"
});

@elbadwihi
Copy link

As far as indexing arabic (and only arabic) text, the docs did not help. However, @ts-thomas reply in this threat here worked for me.

var index = FlexSearch.create({
    encode: false,
    rtl: true,
    split: /\s+/,
    tokenize: "forward"
});

I've tried the above, and many other options, but it doesn't work for me. Any tips? I need to show both English and Arabic results, but I can't get Arabic to show at all, even on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants