@property<EOL><INDENT>def excerpt(self):<DEDENT>
if "<STR_LIT:content>" not in self._results_fields:<EOL><INDENT>return None<EOL><DEDENT>match_phrases = [self._match_phrase]<EOL>if six.PY2:<EOL><INDENT>separate_phrases = [<EOL>phrase.decode('<STR_LIT:utf-8>')<EOL>for phrase in shlex.split(self._match_phrase.encode('<STR_LIT:utf-8>'))<EOL>]<EOL><DEDENT>else:<EOL><INDENT>separate_phrases = [<EOL>phrase<EOL>for phrase in shlex.split(self._match_phrase)<EOL>]<EOL><DEDENT>if len(separate_phrases) > <NUM_LIT:1>:<EOL><INDENT>match_phrases.extend(separate_phrases)<EOL><DEDENT>else:<EOL><INDENT>match_phrases = separate_phrases<EOL><DEDENT>matches = SearchResultProcessor.find_matches(<EOL>SearchResultProcessor.strings_in_dictionary(self._results_fields["<STR_LIT:content>"]),<EOL>match_phrases,<EOL>DESIRED_EXCERPT_LENGTH<EOL>)<EOL>excerpt_text = ELLIPSIS.join(matches)<EOL>for match_word in match_phrases:<EOL><INDENT>excerpt_text = SearchResultProcessor.decorate_matches(excerpt_text, match_word)<EOL><DEDENT>return excerpt_text<EOL>
Property to display a useful excerpt representing the matches within the results