def __init__(self, url, auto_commit_interval=DEFAULT_COMMIT_INTERVAL,<EOL>unique_key='<STR_LIT>', chunk_size=DEFAULT_MAX_BULK, **kwargs):
self.url = url<EOL>self.solr = Solr(url, **kwargs.get('<STR_LIT>', {}))<EOL>self.unique_key = unique_key<EOL>if auto_commit_interval is not None:<EOL><INDENT>self.auto_commit_interval = auto_commit_interval * <NUM_LIT:1000><EOL><DEDENT>else:<EOL><INDENT>self.auto_commit_interval = None<EOL><DEDENT>self.chunk_size = chunk_size<EOL>self.field_list = []<EOL>self._build_fields()<EOL>self._formatter = DocumentFlattener()<EOL>
Verify Solr URL and establish a connection.