FIX: Use default parameter in method.
This commit is contained in:
parent
1ab60d83df
commit
7ed9fbb415
|
@ -151,4 +151,3 @@ class SearchIndexer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ class Search
|
||||||
SELECT p2.id FROM posts p2
|
SELECT p2.id FROM posts p2
|
||||||
LEFT JOIN post_search_data pd ON locale = ? AND p2.id = pd.post_id
|
LEFT JOIN post_search_data pd ON locale = ? AND p2.id = pd.post_id
|
||||||
WHERE pd.post_id IS NULL
|
WHERE pd.post_id IS NULL
|
||||||
)', SiteSetting.default_locale).limit(10000)
|
)', SiteSetting.default_locale).limit(limit)
|
||||||
|
|
||||||
posts.each do |post|
|
posts.each do |post|
|
||||||
# force indexing
|
# force indexing
|
||||||
|
@ -62,7 +62,7 @@ class Search
|
||||||
SELECT p2.id FROM posts p2
|
SELECT p2.id FROM posts p2
|
||||||
LEFT JOIN topic_search_data pd ON locale = ? AND p2.topic_id = pd.topic_id
|
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
|
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|
|
posts.each do |post|
|
||||||
# force indexing
|
# force indexing
|
||||||
|
|
Loading…
Reference in New Issue