X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/03e4e8af0a2e2140399926fa8ed154acabb39b0c..46185b67f099b17b25b55d3ad49d8d45a2fc3a6f:/src/search/views.py?ds=inline diff --git a/src/search/views.py b/src/search/views.py index e6efc21bd..39284c70c 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -151,10 +151,10 @@ def search_books(query): search_fields = [] words = query.split() fieldsets = ( - (['authors'], True), - (['title'], True), - (['metadata'], True), - (['text', 'themes_pl'], False), + (['authors', 'authors_nonstem'], True), + (['title', 'title_nonstem'], True), + (['metadata', 'metadata_nonstem'], True), + (['text', 'text_nonstem', 'themes_pl', 'themes_pl_nonstem'], False), ) for fields, is_book in fieldsets: search_fields += fields @@ -191,10 +191,10 @@ def search_pictures(query): search_fields = [] words = query.split() fieldsets = ( - (['authors'], True), - (['title'], True), - (['metadata'], True), - (['themes_pl'], False), + (['authors', 'authors_nonstem'], True), + (['title', 'title_nonstem'], True), + (['metadata', 'metadata_nonstem'], True), + (['themes_pl', 'themes_pl_nonstem'], False), ) for fields, is_book in fieldsets: search_fields += fields