Browse Source

Ignore failed search query (can happen if user hasn't entered query completly).

Martin Edenhofer 11 years ago
parent
commit
e11d9cada5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/search_index_backend.rb

+ 2 - 1
lib/search_index_backend.rb

@@ -166,7 +166,8 @@ return search result
     puts "# #{response.status.to_s}"
     puts "# #{response.status.to_s}"
     data = JSON.parse( response.body )
     data = JSON.parse( response.body )
     if !response.success?
     if !response.success?
-      raise data.inspect
+      return []
+#      raise data.inspect
     end
     end
 
 
     ids = []
     ids = []