diff --git a/app/services/search_indexer.rb b/app/services/search_indexer.rb index 08478265679..72e526a301e 100644 --- a/app/services/search_indexer.rb +++ b/app/services/search_indexer.rb @@ -151,4 +151,3 @@ class SearchIndexer end end end - diff --git a/lib/search.rb b/lib/search.rb index 91131dbffb6..b9cc5dde166 100644 --- a/lib/search.rb +++ b/lib/search.rb @@ -49,7 +49,7 @@ class Search SELECT p2.id FROM posts p2 LEFT JOIN post_search_data pd ON locale = ? AND p2.id = pd.post_id WHERE pd.post_id IS NULL - )', SiteSetting.default_locale).limit(10000) + )', SiteSetting.default_locale).limit(limit) posts.each do |post| # force indexing @@ -62,7 +62,7 @@ class Search SELECT p2.id FROM posts p2 LEFT JOIN topic_search_data pd ON locale = ? AND p2.topic_id = pd.topic_id WHERE pd.topic_id IS NULL AND p2.post_number = 1 - )', SiteSetting.default_locale).limit(10000) + )', SiteSetting.default_locale).limit(limit) posts.each do |post| # force indexing