From e078d02874b3f4aa50ee2488b83b8e0a4cba8fe7 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Sat, 17 Mar 2012 15:49:02 +0100 Subject: [PATCH] attach thread before using jvm --- apps/search/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/search/views.py b/apps/search/views.py index 4db4bb8fb..2945c42ad 100644 --- a/apps/search/views.py +++ b/apps/search/views.py @@ -51,6 +51,7 @@ def did_you_mean(query, tokens): return query +JVM.attachCurrentThread() search = Search() def hint(request): -- 2.20.1