From 0fa55f7bd162eed021b49f1438f952b8ef63cdae Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Wed, 13 Dec 2017 20:45:48 +0100 Subject: [PATCH] search: Use simple tsvector config This should fix some invisible items for now... --- storage/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/views.py b/storage/views.py index f007229..6ab7f8d 100644 --- a/storage/views.py +++ b/storage/views.py @@ -34,7 +34,7 @@ def apply_smart_search(query, objects): if general_term: objects = objects.annotate( - search=SearchVector('name', 'description', 'props'), + search=SearchVector('name', 'description', 'props', config='simple'), ) filters['search'] = ' '.join(general_term)