1 default_app_config
= 'mygpo.search.apps.SearchConfig'
3 # Field that should be indexed, with their levels per
4 # https://docs.djangoproject.com/en/1.11/ref/contrib/postgres/search/#weighting-queries
10 def get_index_fields(podcast
):
11 """ Returns a dict of the fields to be included in the search index """
12 return {field
: getattr(podcast
, field
) for field
in INDEX_FIELDS
.keys()}