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 authored and Gerrit Code Review committed 2012-08-03 07:33:12 +00:00
1 parent 878313d2ec
commit 76f9038aff
3 files changed
+63 -6

No files matched your search

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