(events)
return query_dict
Build OpenSearch query for one or more document ids.

        Args:
            events: List of OpenSearch document IDs.

        Returns:
            OpenSearch query as a dictionary.
Build OpenSearch query for one or more document ids.
Build OpenSearch query for one or more document ids .
def _build_events_query(events):
        """Build OpenSearch query for one or more document ids.

        Args:
            events: List of OpenSearch document IDs.

        Returns:
            OpenSearch query as a dictionary.
        """
        events_list = [event['event_id'] for event in events]
        query_dict = {'query': {'ids': {'values': events_list}}}
        return query_dict
def _build_events_query ( events ) : events_list = [ event [ 'event_id' ] for event in events ] query_dict = { 'query' : { 'ids' : { 'values' : events_list } } } return query_dict