Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
9b6f7266
Unverified
Commit
9b6f7266
authored
5 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
Fix docs on resetting the user directory (#5036)
Signed-off-by:
Aaron Raimist
<
aaron@raim.ist
>
parent
540f40f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/user_directory.md
+3
-7
3 additions, 7 deletions
docs/user_directory.md
synapse/config/user_directory.py
+3
-3
3 additions, 3 deletions
synapse/config/user_directory.py
with
6 additions
and
10 deletions
docs/user_directory.md
+
3
−
7
View file @
9b6f7266
...
@@ -7,11 +7,7 @@ who are present in a publicly viewable room present on the server.
...
@@ -7,11 +7,7 @@ who are present in a publicly viewable room present on the server.
The directory info is stored in various tables, which can (typically after
The directory info is stored in various tables, which can (typically after
DB corruption) get stale or out of sync. If this happens, for now the
DB corruption) get stale or out of sync. If this happens, for now the
quickest solution to fix it is:
solution to fix it is to execute the SQL here
https://github.com/matrix-org/synapse/blob/master/synapse/storage/schema/delta/53/user_dir_populate.sql
```
and then restart synapse. This should then start a background task to
UPDATE user_directory_stream_pos SET stream_id = NULL;
```
and restart the synapse, which should then start a background task to
flush the current tables and regenerate the directory.
flush the current tables and regenerate the directory.
This diff is collapsed.
Click to expand it.
synapse/config/user_directory.py
+
3
−
3
View file @
9b6f7266
...
@@ -43,9 +43,9 @@ class UserDirectoryConfig(Config):
...
@@ -43,9 +43,9 @@ class UserDirectoryConfig(Config):
#
#
#
'
search_all_users
'
defines whether to search all users visible to your HS
#
'
search_all_users
'
defines whether to search all users visible to your HS
# when searching the user directory, rather than limiting to users visible
# when searching the user directory, rather than limiting to users visible
# in public rooms. Defaults to false. If you set it True, you
'
ll have to
run
# in public rooms. Defaults to false. If you set it True, you
'
ll have to
#
UPDATE
user_directory
_stream_pos SET stream_id = NULL;
#
rebuild the
user_directory
search indexes, see
#
on your database to tell it to rebuild the user_directory search indexes.
#
https://github.com/matrix-org/synapse/blob/master/docs/user_directory.md
#
#
#user_directory:
#user_directory:
# enabled: true
# enabled: true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment