diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-09 15:48:31 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-09 15:48:31 +0100 |
commit | c85c9125627a62c73711786723be12be30d7a81e (patch) | |
tree | e5d32fb9a3f90a764ce3bbe89b5f8e0f619205bc /synapse/api/constants.py | |
parent | Merge pull request #292 from matrix-org/daniel/useragent (diff) | |
download | synapse-c85c9125627a62c73711786723be12be30d7a81e.tar.xz |
Add basic full text search impl.
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r-- | synapse/api/constants.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py index 008ee64727..7c7f9ff957 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py @@ -84,3 +84,22 @@ class RoomCreationPreset(object): PRIVATE_CHAT = "private_chat" PUBLIC_CHAT = "public_chat" TRUSTED_PRIVATE_CHAT = "trusted_private_chat" + + +class SearchConstraintTypes(object): + FTS = "fts" + EXACT = "exact" + PREFIX = "prefix" + SUBSTRING = "substring" + RANGE = "range" + + +class KnownRoomEventKeys(object): + CONTENT_BODY = "content.body" + CONTENT_MSGTYPE = "content.msgtype" + CONTENT_NAME = "content.name" + CONTENT_TOPIC = "content.topic" + + SENDER = "sender" + ORIGIN_SERVER_TS = "origin_server_ts" + ROOM_ID = "room_id" |