Skip to content

Different files considered as duplicated search result and is removed from zoekt search results

Summary

Different files with the same content are considered duplicates and are removed from the Zoekt search result. Slack discussion: https://gitlab.slack.com/archives/C3TMLK465/p1760366764625379?thread_ts=1760354663.725329&cid=C3TMLK465

Steps to reproduce

Create two different files with the same content. Search for some text that appears in both files.

What is the current bug behavior?

Only one file is returned. In the screenshot, file_b is returned.

What is the expected correct behavior?

All files should be returned if they are different, irrespective of their content. file_a and file_b both should be returned.

Relevant logs and/or screenshots

result

file_a

file_b

Possible fixes

Verify the fix from here: gitlab-zoekt-indexer!692 (merged)

Looks like the fix is not done properly

Edited by Ravi Kumar