[Baloo Runner] Filter duplicates and prefer specific type matches

Authored by broulik on Nov 5 2018, 6:12 PM.



A Presentation is also a Document so it would show up twice.
This patch filters out URLs we have already found and moves searching for specific types (Presentation, Spreadsheet) before the more generic Document type.

Test Plan

Searched for Presentation, my presentation.odp showed up only once as "Presentation".

Probably good for 5.14 too

Diff Detail

R120 Plasma Workspace
Lint Skipped
Unit Tests Skipped
broulik created this revision.Nov 5 2018, 6:12 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 5 2018, 6:12 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Nov 5 2018, 6:12 PM
mart accepted this revision.Nov 12 2018, 10:36 AM
This revision is now accepted and ready to land.Nov 12 2018, 10:36 AM
sitter accepted this revision.Nov 15 2018, 1:48 PM
This revision was automatically updated to reflect the committed changes.