synapse/storage/search.py
def store_event_search_txn(self, txn, event, key, value):
        """Add event to the search table

        Args:
            txn (cursor):
            event (EventBase):
            key (str):
            value (str):
        """
        self.store_search_entries_txn(
            txn,
            (SearchEntry(
                key=key,
                value=value,
                event_id=event.event_id,
                room_id=event.room_id,
                stream_ordering=event.internal_metadata.stream_ordering,
                origin_server_ts=event.origin_server_ts,
            ),),
        )
Add event to the search table

        Args:
            txn (cursor):
            event (EventBase):
            key (str):
            value (str):
        
Add event to the search table
Add event to the search table
def store_event_search_txn(self, txn, event, key, value):
        self.store_search_entries_txn(
            txn,
            (SearchEntry(
                key=key,
                value=value,
                event_id=event.event_id,
                room_id=event.room_id,
                stream_ordering=event.internal_metadata.stream_ordering,
                origin_server_ts=event.origin_server_ts,
            ),),
        )
def store_event_search_txn ( self , txn , event , key , value ) : self . store_search_entries_txn ( txn , ( SearchEntry ( key = key , value = value , event_id = event . event_id , room_id = event . room_id , stream_ordering = event . internal_metadata . stream_ordering , origin_server_ts = event . origin_server_ts , ) , ) , )
Add event to the search table
Add event to the search table
"""Add event to the search table

        Args:
            txn (cursor):
            event (EventBase):
            key (str):
            value (str):
        """
self
txn
None
event
None
key
None
value
None