bruns requested changes to this revision. bruns added a comment. This revision now requires changes to proceed.
Can you please provide an example which: - is currently indexed though it should be skipped due to size - is skipped after this change and another example which: - is currently skipped though it should be indexed - is indexed after this change INLINE COMMENTS > app.cpp:184 > + // have trouble processing them > + if ((ex->extractorProperties()["Name"].toString() == > QLatin1String("PlaintextExtractor")) && (filesize >= 10 * 1024 * 1024)) { > + qCWarning(BALOO) << "Skipping" << url << ": large plain text > file"; You should compare for size first, as that's much cheaper than fetching the property and comparing the string. > app.cpp:185 > + if ((ex->extractorProperties()["Name"].toString() == > QLatin1String("PlaintextExtractor")) && (filesize >= 10 * 1024 * 1024)) { > + qCWarning(BALOO) << "Skipping" << url << ": large plain text > file"; > + continue; Users will love us for spammig the logs ... REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D23787 To: poboiko, #baloo, bruns, ngraham Cc: broulik, kde-frameworks-devel, #baloo, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams