Allow typo in search key

* Introduce Levenshtein algorithm
* New API param 'typos' to give number of typos allowed
* test cases

Change-Id: I22bf34d08a910d1509d7eab5adc292eadc9a7c7d
This commit is contained in:
Santhosh Thottingal
2012-08-01 14:14:55 +05:30
committed by Gerrit Code Review
parent 878313d2ec
commit 76f9038aff
3 changed files with 63 additions and 6 deletions

View File

@@ -54,6 +54,14 @@ class LanguageSearchTest extends PHPUnit_Framework_TestCase {
'fro' => 'الفرنسية القديمة',
)
),
array( "മലയളം", array(
'ml' => "മലയാളം",
)
),
array( "finish", array(
'fi' => 'finnish'
)
),
);
}
}