File search among different libraries

Hi, coming from Nextcloud I found weird that Seafile doesn’t support file search among different libraries.
Please, correct me if I’m wrong, but I can search only when I’m inside a library.
I’d like to have a ‘global’ search.

The search bar in the upper right corner of the webinterface performs a global search for me.
Do you have elasticsearch enabled?

I have the search icon next to the bell icon on the right, but it doesn’t appear when I’m on My Libraries page. When I click the search button, this comes out

If I’m in Ebooks library, searching for a document existing in my Personal Documents library doesn’t return anything.
This is my seafevents.conf file (copied by the manual)

enabled = true
highlight = fvh                              

By the way, I’m on Seafile community 10.0.1, using latest docker image seafileltd/seafile-mc:latest

I’m using the pro edition, maybe this is not available in the CE.

What happens when you go to yourinstance.tld/search/ ?

this is a function for the pro edition
and you have to install ElasticSearch on the server

@tschoesi I get Sorry, but the requested page could not be found.
@Cisco Well, actually, no. I’m not asking for full text file search. I’m asking to be able to make file search on all the libraries. Now, if I had a file but I didn’t know which library, I’d have to make a search inside each library

No search button in homepage

it’s weird, look on the image the search bar should be present

Very strange indeed. May that be because I’m using Seafile on Docker?
Is there anything I can do to troubleshoot the issue?

Should I open a issue on Github, maybe?

I will try on a test server tonight to install Seafile CE Docker, I will see at this time if I have the same problem as you.
I’ll tell you more tomorrow

1 Like

I installed Seafile CE Docker 10.0.1 (latest docker version), and the search inside a library works very well. Look at the following images




here is the docker file used for the construction of seafile (remember to adapt the configuration to your environment)

version: '2.0'
    image: mariadb:10.6
    container_name: seafile-mysql
      - MYSQL_ROOT_PASSWORD=@change-me  # Requested, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
      - /opt/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
      - seafile-net

    image: memcached:1.6.18
    container_name: seafile-memcached
    entrypoint: memcached -m 256
      - seafile-net
    image: seafileltd/seafile-mc:latest
    container_name: seafile
     - "80:80"
     - "443:443"  # If https is enabled, cancel the comment.
      - /opt/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
      - DB_HOST=db
      - DB_ROOT_PASSWD=change-me  # Requested, the value shuold be root's password of MySQL service.
      - TIME_ZONE=Europe/Paris  # Optional, default is UTC. Should be uncomment and set to your local time zone.
      - SEAFILE_ADMIN_EMAIL=CHANGE@CHANGE.ME # Specifies Seafile admin user, default is ''.
      - SEAFILE_ADMIN_PASSWORD=CHANGE-ME     # Specifies Seafile admin password, default is 'asecret'.
      - SEAFILE_SERVER_LETSENCRYPT=true   # Whether to use https or not.
      - # Specifies your host name if https is enabled.
      - db
      - memcached
      - seafile-net


Hey Cisco, I really appreciate your help and effort!

By the way, I see that you don’t have the search bar on SF home page either, exactly like me.

But logging in here, I have the search bar in the home page, so I suppose this is caused by the docker image (although I don’t know wethere the demo site uses docker or not).

Therefore, it looks like the next step would be to open a Github issue on the docker image repo.

if you are using Seafile CE there will be no search bar. the search bar is only for the pro edition and there must not also be a “seafevents.conf” file in the “conf” folder of seafile
If you use seafile pro , there must be a “seafevents.conf” file
in the “conf” folder, and there you will need to install “Elasticsearch”
the search bar is only for the pro edition.

here is my “seafevents.conf” file as an example
type = mysql
host =
port = 3306
username = seafile
name = seahub-db

enabled = true

enabled = true
interval = 60m
external_es_server = true
#shards = 10

highlight = fvh

## If true, indexes the contents of office/pdf files while updating search index
## Note: If you change this option from "false" to "true", then you need to clear the search index and update the index again. See the FAQ for details.
index_office_pdf = true

enabled = true
workers = 3

## where to store the converted office/pdf files. Deafult is /tmp/.
outputdir = /tmp/

enabled = true

## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
interval = 30m

# Enable statistics
enabled= true

Ok, I understand. So, the lack of search bar is because I’m using the Community Edition?
From my perspective, this is still a valid feature request.
But, if this is a commercial choice, I kind of understand, but from the technical point of view I find hard to explain the need of ElasticSearch when I’m already able to search inside the single library.
I’m not a developer, though, so I might miss some points.

with seafile pro edition, you have a full text search, which can work on all libraries at the same time if you are at the root of your website, and which can also search only in a library or folder or under folder from when you are inside the folder,
full search allows you to search for a word inside a text file or a .word file, for example.
the basic search only finds names of folders or files but not the words inside these files