def _build_es_excerpt(result, first_only=False):
 bits = [m.strip() for m in chain(*result.es_meta.highlight.values())]
 if (first_only and bits):
  excerpt = bits[0]
 else:
  excerpt = EXCERPT_JOINER.join(bits)
 return jinja2.Markup(clean_excerpt(excerpt))

def _build_es_excerpt ( result , first_only = False ) : bits = [ m . strip ( ) for m in chain ( * result . es_meta . highlight . values ( ) ) ] if ( first_only and bits ) : excerpt = bits [ 0 ] else : excerpt = EXCERPT_JOINER . join ( bits ) return jinja2 . Markup ( clean_excerpt ( excerpt ) )
return concatenated search excerpts .