To let your Matrix server's public rooms indexed on Matrix Rooms Search instances, you can use the POST /discover/{server_name} endpoint following the example below.
curl -X POST https://api.matrixrooms.info/discover/example.comIn the example, the MatrixRooms.info demo Matrix Rooms Search instance and example.com homeserver are specified. Please change them as needed.
If your server publishes room directory over federation and its public rooms are listed on the directory, they will be included in the search index by MRS instances with daily full reindexing process.
The rooms will be included in the search index, if these conditions are met:
- The room was configured as federatable when you created it
- The room is set to "public" in room settings
- The room is published on your server's public rooms directory
- Your server published the public rooms directory over federation
It is because not all of the conditions described above are met.
In addition to editing the room's configuration, please also make sure that your server publishes the public rooms directory over federation.
For Synapse homeserver, you need to add the following config options in the homeserver.yaml:
allow_public_rooms_over_federation: trueIf you use etke.cc/ansible and matrix-docker-ansible-deploy to manage your Matrix homeserver, add the following to your vars.yml configuration file:
matrix_synapse_allow_public_rooms_over_federation: trueYou can check this page for details.