* improve support for non-latin languages (cyrillic etc.) (WIP)
- change the various escaping / normalization functions to better deal with
non-ascii, non-latin languages, such as Russian.
It seems. now we can match 'Тесла' or 'Аркона' without problem.
- added unit test.
- WIP -- needs more testing.
This commit is contained in:
@ -298,7 +298,7 @@ mu_query_preprocess (const char *query, GError **err)
|
||||
cur->data = mu_str_normalize_in_place ((gchar*)cur->data, TRUE);
|
||||
/* escape '@', single '_' and ':' if it's not following a
|
||||
* xapian-pfx with '_' */
|
||||
cur->data = mu_str_ascii_xapian_escape_in_place
|
||||
cur->data = mu_str_xapian_escape_in_place
|
||||
((gchar*)cur->data, TRUE /*escape spaces too*/);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user