X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bf44c40468133304afaf5fac1676bcaab7db4969..1d5891fb132659113423705d8d8c982144ef7a8c:/src/search/index.py?ds=sidebyside diff --git a/src/search/index.py b/src/search/index.py index 4f9a765b0..7bc61c5c6 100644 --- a/src/search/index.py +++ b/src/search/index.py @@ -744,7 +744,7 @@ class Search(SolrIndex): else: query = self.index.query() query = self.apply_filters(query, filters).field_limit(score=True, all_fields=True) - return [SearchResult(found, how_found='search_words') for found in query] + return [SearchResult(found, how_found='search_words') for found in query.execute()] def get_snippets(self, searchresult, query, field='text', num=1): """