You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Content in branch 'c' completely unsearchable despite indexing #960
Created a repository with branch c and added a new file makabaka
Confirmed the repository is indexed in Zoekt
Search returns no results for content in branch c
Same scenario works normally for branch cc (file makabaka is searchable)
但是我搜索的时候确搜索不到其内容,我是已经给这个仓库创建了索引了
This appears to be a branch-specific indexing issue where single-character branch names (like c) may not be properly handled. The problem persists even after reindexing, while multi-character branches (like cc) function as expected.
Yes, that's right. I built a system on zoekt. I used log printing to rule out the problem with my system. The system only fills the searched content with a layer of data. However, I always find that the searched content always lacks branches. Is there any command that can let me confirm whether the zoekt index is created successfully without using API requests?
Activity
linear commentedon May 26, 2025
SPLF-1055 [Bug] Content in branch 'c' completely unsearchable despite indexing
keegancsmith commentedon May 26, 2025
based on your screenshots you are using a system on top of zoekt to manage indexing/etc? I don't know why zoekt wouldn't index the branch.
Can you reproduce via directly running
zoekt-git-index? Can you share the commands you run then?Note: it seems the branch name here is
ccnotclike in your title.huanlongzhou commentedon May 29, 2025
Yes, that's right. I built a system on zoekt. I used log printing to rule out the problem with my system. The system only fills the searched content with a layer of data. However, I always find that the searched content always lacks branches. Is there any command that can let me confirm whether the zoekt index is created successfully without using API requests?
My directory hierarchy is like this

keegancsmith commentedon May 29, 2025
Please share the zoekt-git-index command you run so I can validate it makes sense.
huanlongzhou commentedon May 29, 2025
}
gitindex: resolve a hex branch name as a branch before a commit hash
gitindex: resolve a hex branch name as a branch before a commit hash (#…