()
return functools.reduce(operator.__add__, vectors)
Return the combined search vector to use for indexing podcasts
Return the combined search vector to use for indexing podcasts
Return the combined search vector to use for indexing podcasts
def _get_search_vectors():
    """Return the combined search vector to use for indexing podcasts"""
    vectors = []
    for (field, weight) in INDEX_FIELDS.items():
        # index the podcast based on the stored language
        vectors.append(SearchVector(field, weight=weight))

    # vectors can be combined with +
    return functools.reduce(operator.__add__, vectors)
def _get_search_vectors ( ) : vectors = [ ] for ( field , weight ) in INDEX_FIELDS . items ( ) : # index the podcast based on the stored language vectors . append ( SearchVector ( field , weight = weight ) ) # vectors can be combined with + return functools . reduce ( operator . __add__ , vectors )