We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696ef10 commit 5822e60Copy full SHA for 5822e60
app/controllers/bento_controller.rb
@@ -13,8 +13,9 @@ def index
13
redirect_to_desired_controller
14
initialize_search_data
15
long_running_thread = Thread.new { article_results }
16
+ long_running_thread.run
17
solr_results
- long_running_thread.join
18
+ long_running_thread.join 9
19
redirect_to_most_useful_controller
20
end
21
@@ -34,6 +35,7 @@ def article_results
34
35
@articles = results.records&.map { |record| Article.new record }
36
rescue
37
@num_article_hits = 0
38
+ @articles = []
39
40
41
def solr_results
0 commit comments