~blue-shell/blue-shell/baloo

Viewing all changes in revision 1575.

  • Committer: Stefan Brüns
  • Date: 2019-06-17 00:18:07 UTC
  • Revision ID: git-v1:1a573d5fe373499cac436c0174e17983c7299332
[TermGenerator] Leave single term phrases out of the PositionDB

Summary:
Any search phrase consisting of a single term only can be handled by
the PostingDB alone, and a document with single terms can never match
a real phrase (consisting a multiple terms).

Storing these terms also in the PositonDB just wastes space, so remove
these from the DB, and delegate single term phrases to the PostingDB.

While the document content and even filenames (basename + suffix) consist
of multiple terms typically, folder names, tags and properties are often
a single term.

Test Plan:
ctest
ctest -R querytest

Reviewers: #baloo, ngraham, astippich, poboiko

Reviewed By: #baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D21866

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: