Skip to content

extraneous "admin" result present in the search index #11028

Closed

Description

@jvillafanez

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.

Image

Steps to reproduce

  1. With the admin account, create a couple of folders
  2. Search the "admin" word
  3. 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=somevalue

Additional 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.

Activity

  1. jvillafanez commented on Mar 21, 2025

    @jvillafanez
    MemberAuthor

    We might also consider to skip the ".space" folder because that's also indexed:

        1. 86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!ca9235b0-fdd4-425c-8fae-ee714d3b8964 (0.322284)
    	ParentID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!589721fc-4f9c-420d-92e5-005c13375ebc
    	ID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!ca9235b0-fdd4-425c-8fae-ee714d3b8964
    	Path		./.space/image.png
    	Name		image.png
    	Title		
    	MimeType		image/png
    	RootID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!0cef2d5d-9414-4587-910d-d6a923c00b6d
        2. 86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!bb0cfb93-19ac-42a9-bc20-8953e932ab67 (0.264456)
    	RootID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!0cef2d5d-9414-4587-910d-d6a923c00b6d
    	ParentID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!0cef2d5d-9414-4587-910d-d6a923c00b6d
    	MimeType		image/jpeg
    	Name		5cwx14ct1tx81.jpg
    	ID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!bb0cfb93-19ac-42a9-bc20-8953e932ab67
    	Path		./5cwx14ct1tx81.jpg
    	Title		
        3. 86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!589721fc-4f9c-420d-92e5-005c13375ebc (0.178506)
    	MimeType		httpd/unix-directory
    	ID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!589721fc-4f9c-420d-92e5-005c13375ebc
    	RootID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!0cef2d5d-9414-4587-910d-d6a923c00b6d
    	ParentID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!0cef2d5d-9414-4587-910d-d6a923c00b6d
    	Title		
    	Path		./.space
    	Name		.space
        4. 86565237-ffa3-4a5d-b89e-4676d83b1a64$9fbba3bc-3f38-477b-ae38-213db041ea2c!7612263e-00b7-41d7-8456-d884a4c3b678 (0.178369)
    	Path		./Untitled 3.docx
    	MimeType		application/vnd.openxmlformats-officedocument.wordprocessingml.document
    	Name		Untitled 3.docx
    	ID		86565237-ffa3-4a5d-b89e-4676d83b1a64$9fbba3bc-3f38-477b-ae38-213db041ea2c!7612263e-00b7-41d7-8456-d884a4c3b678
    	RootID		86565237-ffa3-4a5d-b89e-4676d83b1a64$9fbba3bc-3f38-477b-ae38-213db041ea2c!9fbba3bc-3f38-477b-ae38-213db041ea2c
    	ParentID		86565237-ffa3-4a5d-b89e-4676d83b1a64$9fbba3bc-3f38-477b-ae38-213db041ea2c!9fbba3bc-3f38-477b-ae38-213db041ea2c
    	Title		
        5. 86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!cdab5096-6e86-4758-a24e-2ba0143117c6 (0.159104)
    	Path		./.space/readme.md
    	ParentID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!589721fc-4f9c-420d-92e5-005c13375ebc
    	RootID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!0cef2d5d-9414-4587-910d-d6a923c00b6d
    	MimeType		text/markdown
    	Title		
    	Name		readme.md
    	ID		86565237-ffa3-4a5d-b89e-4676d83b1a64$0cef2d5d-9414-4587-910d-d6a923c00b6d!cdab5096-6e86-4758-a24e-2ba0143117c6
    
    
  2. jvillafanez commented on Apr 1, 2025

    @jvillafanez
    MemberAuthor

    PR merged. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions