def __init__(self, queue, prefix='<STR_LIT>', suffix='<STR_LIT>', client=None,<EOL>preprocessors=None, double_click_window=<NUM_LIT:10>):
self.queue = queue<EOL>self.client = client or current_search_client<EOL>self.doctype = queue.routing_key<EOL>self.index = '<STR_LIT>'.format(prefix, self.queue.routing_key)<EOL>self.suffix = suffix<EOL>self.preprocessors = [<EOL>obj_or_import_string(preproc) for preproc in preprocessors<EOL>] if preprocessors is not None else self.default_preprocessors<EOL>self.double_click_window = double_click_window<EOL>
Initialize indexer.

        :param prefix: prefix appended to elasticsearch indices' name.
        :param suffix: suffix appended to elasticsearch indices' name.
        :param double_click_window: time window during which similar events are
            deduplicated (counted as one occurence).
        :param client: elasticsearch client.
        :param preprocessors: a list of functions which are called on every
            event before it is indexed. Each function should return the
            processed event. If it returns None, the event is filtered and
            won't be indexed.