Created
February 12, 2015 08:12
-
-
Save oksuz/8fe2042aa9292c3881c9 to your computer and use it in GitHub Desktop.
Sphinx Search Turkish Charset Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type:text/html; charset=utf8"); | |
$cli = new SphinxClient(); | |
$cli->setServer("127.0.0.1", 9312); | |
$cli->setMatchMode(SPH_MATCH_EXTENDED2); | |
$result = $cli->query("bu süreçte yalnız değilsin"); | |
var_dump($result); | |
/* | |
'words' => | |
array (size=4) | |
'bu' => | |
array (size=2) | |
'docs' => int 1634 | |
'hits' => int 2177 | |
'süreçte' => | |
array (size=2) | |
'docs' => int 19 | |
'hits' => int 19 | |
'yalnız' => | |
array (size=2) | |
'docs' => int 0 | |
'hits' => int 0 | |
'değilsin' => | |
array (size=2) | |
'docs' => int 0 | |
'hits' => int 0 | |
*/ | |
// in sphinx-conf: | |
/* | |
charset_table = A->a, B->b, C->c, U+C7->U+E7, D..G->d..g, U+11E->U+11F, H->h, I->U+131, \ | |
U+130->i, J..O->j..o, U+D6->U+F6, P..S->p..s, U+15E->U+15F, T..U->t..u, U+DC->U+FC, V->v, \ | |
Y->y, Z->z, _, a, b, c, U+E7, \ | |
d..g, U+11F, h, U+131, i..o, U+F6, p..s, U+15F, t..u, U+FC, v, y, z | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment