summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2017-12-13 20:45:48 +0100
committerPiotr Dobrowolski <admin@tastycode.pl>2017-12-13 20:45:48 +0100
commit0fa55f7bd162eed021b49f1438f952b8ef63cdae (patch)
tree09c60a6a765cadd6f8e37009fa5155250dc9a126
parentce0b081ba67092798920a23572908d28cec3bb7b (diff)
downloadspejstore-0fa55f7bd162eed021b49f1438f952b8ef63cdae.tar.gz
spejstore-0fa55f7bd162eed021b49f1438f952b8ef63cdae.tar.bz2
spejstore-0fa55f7bd162eed021b49f1438f952b8ef63cdae.zip
search: Use simple tsvector config
This should fix some invisible items for now...
-rw-r--r--storage/views.py2
1 files changed, 1 insertions, 1 deletions
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)