Merge lp:~dbarth/unity-lens-applications/cjk-support into lp:unity-lens-applications

Proposed by David Barth
Status: Merged
Approved by: Neil J. Patel
Approved revision: 222
Merged at revision: 222
Proposed branch: lp:~dbarth/unity-lens-applications/cjk-support
Merge into: lp:unity-lens-applications
Diff against target: 13 lines (+3/-0)
1 file modified
src/unity-package-search.cc (+3/-0)
To merge this branch: bzr merge lp:~dbarth/unity-lens-applications/cjk-support
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Approve
Review via email: mp+72878@code.launchpad.net

Description of the change

Actives support for the new CJK tokenizer in Xapian.

To post a comment you must log in.
Revision history for this message
Neil J. Patel (njpatel) :
review: Approve
Revision history for this message
David Barth (dbarth) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-package-search.cc'
2--- src/unity-package-search.cc 2011-03-29 08:16:41 +0000
3+++ src/unity-package-search.cc 2011-08-25 12:53:55 +0000
4@@ -90,6 +90,9 @@
5 static void
6 init_searcher (UnityPackageSearcher *searcher)
7 {
8+ // Activate Xapian CJK support
9+ setenv("XAPIAN_CJK_NGRAM", "1", 1);
10+
11 Xapian::Database db = *searcher->db;
12
13 // Start an enquire session

Subscribers

People subscribed via source and target branches