FIX: Use default parameter in method.

This commit is contained in:
Guo Xiang Tan 2017-06-26 11:13:29 +09:00
parent 1ab60d83df
commit 7ed9fbb415
2 changed files with 2 additions and 3 deletions

View File

@ -151,4 +151,3 @@ class SearchIndexer
end
end
end

View File

@ -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