Repository navigation
Description
Describe the bug
It seems the personal root folder is stored in the search index with a specific name, likely based on the owner. Searching by your own username will likely show your personal root folder as part of the results.
Steps to reproduce
- With the admin account, create a couple of folders
- Search the "admin" word
- An "Admin" folder appears in the results
Note that the "Admin" folder is present in the index, so "it's ok" if the result is shown. However, the user can't find that folder and is moved to the root folder when he clicks the result.
The result won't make sense for the user, which might think it's a bug.
Expected behavior
There is no folder explicitly created with that name, so it shouldn't appear in the search results
Actual behavior
The "Admin" folder is present in the index
root@1b007540fee9:/# bleve query /var/lib/ocis/bleve-dpath/bleve/ '*' -x
2 matches, showing 1 through 2, took 17.30292ms
1. 46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!842434b0-0df0-4140-8f3a-40d2f8692575 (0.441478)
ID
46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!842434b0-0df0-4140-8f3a-40d2f8692575
Name
blo
RootID
46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!93960827-796b-431c-9845-c833b9014194
ParentID
46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!93960827-796b-431c-9845-c833b9014194
MimeType
httpd/unix-directory
Title
Path
./blo
2. 46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!93960827-796b-431c-9845-c833b9014194 (0.405581)
ParentID
46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194
ID
46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!93960827-796b-431c-9845-c833b9014194
RootID
46d3de1d-c354-435b-a837-521f3955d52f$93960827-796b-431c-9845-c833b9014194!93960827-796b-431c-9845-c833b9014194
Path
.
Title
MimeType
httpd/unix-directory
Name
Admin
Setup
This should be reproducible with a default ocis 7.1 installation, although you'll need to stop the server to access the index with the bleve cli.
Details
OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalueAdditional context
Priority might depend on the relative search score in relation with other results. If the score is too low, that result might be buried under a lot of more relevant results, so the user might not notice. However, if the score it too high, the result will be visible, causing confusion to the user.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone

Activity
jvillafanez commentedon Mar 21, 2025
We might also consider to skip the ".space" folder because that's also indexed:
jvillafanez commentedon Apr 1, 2025
PR merged. Closing this issue.