anonymousland-synapse/synapse/storage
Andrew Morgan 13e9029f44
Add a config option to prioritise local users in user directory search results (#9383)
This PR adds a homeserver config option, `user_directory.prefer_local_users`, that when enabled will show local users higher in user directory search results than remote users. This option is off by default.

Note that turning this on doesn't necessarily mean that remote users will always be put below local users, but they should be assuming all other ranking factors (search query match, profile information present etc) are identical.

This is useful for, say, University networks that are openly federating, but want to prioritise local students and staff in the user directory over other random users.
2021-02-19 11:02:03 +00:00
..
databases Add a config option to prioritise local users in user directory search results (#9383) 2021-02-19 11:02:03 +00:00
engines Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
schema Only run one background update at a time 2020-03-31 17:43:58 +01:00
util Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
__init__.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
_base.py Add additional type hints to the storage module. (#8980) 2020-12-30 08:09:53 -05:00
background_updates.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
keys.py Add additional type hints to the storage module. (#8980) 2020-12-30 08:09:53 -05:00
persist_events.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
prepare_database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
purge_events.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
push_rule.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
relations.py Add additional type hints to the storage module. (#8980) 2020-12-30 08:09:53 -05:00
roommember.py Add EventStreamPosition type (#8388) 2020-09-24 13:24:17 +01:00
state.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
types.py Update type hints for Cursor to match PEP 249. (#9299) 2021-02-05 15:39:19 -05:00