mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-21 13:18:42 -04:00
Add basic full text search impl.
This commit is contained in:
parent
db6e1e1fe3
commit
c85c912562
8 changed files with 268 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue