X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/53e53be2fd5c6ffd0b96928735944aa75b7b2f2d..5b312d5dfc897d291d4d4ed159fc25d7f5493d41:/src/search/views.py?ds=inline diff --git a/src/search/views.py b/src/search/views.py index 6120d25fe..39284c70c 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -106,7 +106,6 @@ def hint(request): @cache.never_cache def main(request): - return HttpResponse('Search is temporarily disabled', status=503) query = request.GET.get('q', '') if len(query) < 2: return render_to_response( @@ -152,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 @@ -192,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