Merge lp:~jamesh/mediascanner2/fix-tokenizer into lp:mediascanner2
Status: | Merged |
---|---|
Approved by: | Jussi Pakkanen |
Approved revision: | 250 |
Merged at revision: | 249 |
Proposed branch: | lp:~jamesh/mediascanner2/fix-tokenizer |
Merge into: | lp:mediascanner2 |
Diff against target: |
83 lines (+8/-17) 4 files modified
CMakeLists.txt (+1/-1) debian/control (+1/-1) src/mediascanner/mozilla/fts3_porter.c (+5/-7) test/test_mediastore.cc (+1/-8) |
To merge this branch: | bzr merge lp:~jamesh/mediascanner2/fix-tokenizer |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jussi Pakkanen (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+225129@code.launchpad.net |
Commit message
Update the FTS tokenizer to work with SQLite 3.8.5, and reenable the MediaStoreTest.
Description of the change
Fix the full text search tokenizer to work with SQLite 3.8.5.
With the following change, sqlite3 stopped passing the wildcard suffix to the tokenizer, which broke our hack for detecting when we were tokenizing a wild card query:
http://
So now always tokenize short words at the end of input.
This shouldn't require a rebuild of the index, since this last case in the tokenizer shouldn't have been hit when parsing actual file metadata (probably: it would have matched input that actually ended in '*'). The new version of the tokenizer could potentially cause extra words to be added to the index, but they are probably low quality (being short) so I wouldn't bother with a rebuild.
PASSED: Continuous integration, rev:250 jenkins. qa.ubuntu. com/job/ mediascanner2- ci/102/ jenkins. qa.ubuntu. com/job/ mediascanner2- utopic- amd64-ci/ 43 jenkins. qa.ubuntu. com/job/ mediascanner2- utopic- armhf-ci/ 43 jenkins. qa.ubuntu. com/job/ mediascanner2- utopic- armhf-ci/ 43/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mediascanner2- utopic- i386-ci/ 43
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mediascanne r2-ci/102/ rebuild
http://