@wrap_exceptions<EOL><INDENT>def _build_fields(self):<DEDENT>
declared_fields = self.solr._send_request('<STR_LIT>', ADMIN_URL)<EOL>result = decoder.decode(declared_fields)<EOL>self.field_list = self._parse_fields(result, '<STR_LIT>')<EOL>self._dynamic_field_regexes = []<EOL>for wc_pattern in self._parse_fields(result, '<STR_LIT>'):<EOL><INDENT>if wc_pattern[<NUM_LIT:0>] == "<STR_LIT:*>":<EOL><INDENT>self._dynamic_field_regexes.append(<EOL>re.compile("<STR_LIT>" % wc_pattern[<NUM_LIT:1>:]))<EOL><DEDENT>elif wc_pattern[-<NUM_LIT:1>] == "<STR_LIT:*>":<EOL><INDENT>self._dynamic_field_regexes.append(<EOL>re.compile("<STR_LIT>" % wc_pattern[:-<NUM_LIT:1>]))<EOL><DEDENT><DEDENT>
Builds a list of valid fields