X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2ea9be2319952e1b977b9a175559871589c1046e..378665e6e0ee8595e3c97096331bab365845cd9e:/apps/opds/views.py?ds=inline diff --git a/apps/opds/views.py b/apps/opds/views.py index 2a1b2f890..8fe0b8f1b 100644 --- a/apps/opds/views.py +++ b/apps/opds/views.py @@ -390,7 +390,8 @@ class SearchFeed(AcquisitionFeed): if author: log.info( "narrow to author %s" % author) - hint.tags(srch.search_tags(srch.get_tokens(author, field='authors'), filt=srch.term_filter(Term('tag_category', 'author')))) + hint.tags(srch.search_tags(srch.make_phrase(srch.get_tokens(author, field='authors'), field='authors'), + filt=srch.term_filter(Term('tag_category', 'author')))) if translator: log.info( "filter by translator %s" % translator)