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

Indexing utf8 bin words #47

Closed
almamund opened this issue Oct 5, 2016 · 5 comments
Closed

Indexing utf8 bin words #47

almamund opened this issue Oct 5, 2016 · 5 comments

Comments

@almamund
Copy link

almamund commented Oct 5, 2016

Helllo,

I want to use this package in a Bengali website. Works fine with English characters. But doesn't index utf8 bin characters.

Is there anyway I can achieve it?

Regards

@bayeer
Copy link

bayeer commented Oct 31, 2016

+1.
I met the same problem with Russian words.

@drashoor
Copy link

drashoor commented Nov 2, 2016

+1

1 similar comment
@jcglp
Copy link

jcglp commented Nov 2, 2016

+1

@nticaric
Copy link
Contributor

nticaric commented Nov 3, 2016

While loading the config you can add charset and collation and suit it to your need

$tnt->loadConfig([
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'dbname',
    'username'  => 'user',
    'password'  => 'pass',
    'storage'   => '/var/www/tntsearch/examples/',
    'charset' => 'utf8',
    'collation' => 'utf8_unicode_ci',
]);

@nticaric nticaric closed this as completed Nov 3, 2016
@almamund
Copy link
Author

It isn't working. It always returns first few results

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

No branches or pull requests

5 participants