Bug 429283

Summary: baloosearch returns duplicate results
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Peter Hoeg <peter>
Component: generalAssignee: Stefan BrĂ¼ns <stefan.bruens>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, tagwerk19
Priority: NOR    
Version: 5.73.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Peter Hoeg 2020-11-18 04:41:51 UTC
SUMMARY

baloosearch returns duplicate results.

```sh
$ baloosearch example | grep work | grep managed
/home/peter/org/work/shared/managed_services.org
/home/peter/org/work/shared/managed_services.org
/home/peter/org/work/shared/managed_services.org
/home/peter/org/work/shared/managed_services.org
Elapsed: 2.1973 msecs
```

Almost all the files are duplicated:

```sh
$ baloosearch example | wc -l                   
Elapsed: 2.20035 msecs
663

$ baloosearch example | sort -u | wc -l
Elapsed: 2.25017 msecs
202
```

STEPS TO REPRODUCE
1. enable baloo
2. let it index
3. search for something
4. notice the duplicate results

OBSERVED RESULT

```sh
$ baloosearch example | grep work | grep managed
/home/peter/org/work/shared/managed_services.org
/home/peter/org/work/shared/managed_services.org
/home/peter/org/work/shared/managed_services.org
/home/peter/org/work/shared/managed_services.org
Elapsed: 2.1973 msecs
```
EXPECTED RESULT

```sh
$ baloosearch example | grep work | grep managed
/home/peter/org/work/shared/managed_services.org
Elapsed: 2.1973 msecs
```

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS unstable
KDE Plasma Version: 5.73
KDE Frameworks Version: plasma 5.18.5
Qt Version: 5.15.0

ADDITIONAL INFORMATION

I have been observing this for a long time on multiple systems.

Wiping the local store and letting it reindex doesn't help.
Comment 1 Nate Graham 2020-11-18 21:01:28 UTC

*** This bug has been marked as a duplicate of bug 419302 ***
Comment 2 Nate Graham 2022-03-05 14:50:06 UTC

*** This bug has been marked as a duplicate of bug 401863 ***