diff --git a/sapl/base/search_indexes.py b/sapl/base/search_indexes.py index cd4b4ebaf..ea1632666 100644 --- a/sapl/base/search_indexes.py +++ b/sapl/base/search_indexes.py @@ -16,6 +16,7 @@ class DocumentoAcessorioIndex(indexes.SearchIndex, indexes.Indexable): return self.model def index_queryset(self, using=None): + """Used when the entire index for model is updated.""" return self.get_model().objects.all() def prepare(self, obj): @@ -38,6 +39,8 @@ class DocumentoAcessorioIndex(indexes.SearchIndex, indexes.Indexable): extracted_data = extracted_data.replace('\t', ' ') + # Now we'll finally perform the template processing to render the + # text field with *all* of our metadata visible for templating: t = loader.select_template(( 'search/indexes/' + self.template_name, )) data['text'] = t.render(Context({'object': obj, diff --git a/sapl/templates/search/search.html b/sapl/templates/search/search.html index ed66e5a83..14ef18ea6 100644 --- a/sapl/templates/search/search.html +++ b/sapl/templates/search/search.html @@ -4,7 +4,6 @@ {% block base_content %}
-