D20556: Keep empty Json metadata docs out of DocumentData DB
Stefan Brüns
noreply at phabricator.kde.org
Sun Apr 14 21:13:22 BST 2019
bruns created this revision.
bruns added reviewers: Baloo, Frameworks, astippich, ngraham, poboiko.
Herald added projects: Frameworks, Baloo.
Herald added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
In case a document is marked for content indexing, but none of the
extractors returns any data, the Baloo::Result::finish() method will
serialize the data as an empty Json document, "{}".
Having no data for a document in the DB is no error, this is the case
already when content indexing is disabled or when the indexer has not
yet processed the document, so leave it out to save some space.
REPOSITORY
R293 Baloo
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D20556
AFFECTED FILES
src/file/extractor/result.cpp
src/lib/file.cpp
To: bruns, #baloo, #frameworks, astippich, ngraham, poboiko
Cc: kde-frameworks-devel, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190414/cda17659/attachment.html>
More information about the Kde-frameworks-devel
mailing list