<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Baloo, Frameworks.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />bruns requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16236">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The BasicIndexingJob started from the UnindexedFileIndexer only has<br />
the file extension based mimetype and thus can not determine if a file<br />
should be indexed.</p>

<p>Remove the document only from the indexingleveldb, otherwise the<br />
document can not be found e.g. by name or type, and the basic indexer is<br />
run on the file again on each session start.</p>

<p>This is typical for e.g. xml files, which may come with various file<br />
extensions based on the application, e.g. XMP sidecar files.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>start <tt style="background: #ebebeb; font-size: 13px;">balooctl monitor</tt><br />
save some metadata to an XMP sidecar file, e.g. from digikam<br />
-> the file is added to the index and immediately removed again.<br />
When content indexing is switched off, the file stays in the<br />
index.</p>

<p>After the change, the file stays in the index.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>mimetype_handling</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16236">https://phabricator.kde.org/D16236</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/file/extractor/app.cpp</div></div></div><br /><div><strong>To: </strong>bruns, Baloo, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>