]> git.openstreetmap.org Git - osqa.git/commitdiff
Fixes an error in the mysqlfulltext module introduced in one of the previous commits.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 23 Jun 2011 20:55:39 +0000 (20:55 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 23 Jun 2011 20:55:39 +0000 (20:55 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1070 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum_modules/mysqlfulltext/startup.py

index 1b12517bb688cdd8c6404c6639ccf0d311d0b617..08926cbfacdab00ae4625ced75fa7486ac2a63fc 100644 (file)
@@ -54,5 +54,5 @@ def question_search(self, keywords):
                                 """,
             },
         select_params=[keywords, keywords, keywords]
-    ).filter(Q(title__search=keywords) | Q(tagnames__search=keywords) | Q(body__search=keywords))
+    ).filter(Q(ftsindex__title__search=keywords) | Q(ftsindex__tagnames__search=keywords) | Q(ftsindex__body__search=keywords))
     return '-ranking', qs