Skip to content

Commit eeb7f4d

Browse files
committed
specify the size of search result is temporary unlimit
1 parent 384a1cb commit eeb7f4d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/full_text_search/hooks/issue_query_any_searchable.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def build_any_searchable_query(query, filter_condition)
8080
'match_columns', 'content',
8181
'output_columns', 'issue_id',
8282
'query', pgroonga_query_escape(:query),
83-
'filter', '#{filter_condition}'
83+
'filter', '#{filter_condition}',
84+
'limit', '-1'
8485
]
8586
)::json
8687
SQL

test/unit/full_text_search/issue_query_any_searchable_test.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ class IssueQueryAnySearchableTest < ActiveSupport::TestCase
1111
unless Redmine::Database.postgresql?
1212
skip("Required PGroonga now. We will support Mroonga soon.")
1313
end
14-
IssueContent.destroy_all
1514
User.current = nil
16-
perform_enqueued_jobs(only: FullTextSearch::UpdateIssueContentJob) do
17-
Attachment.destroy_all
18-
Issue.destroy_all
19-
Journal.destroy_all
20-
end
15+
Attachment.destroy_all
16+
Issue.destroy_all
17+
IssueContent.destroy_all
18+
Journal.destroy_all
2119
end
2220

2321
def test_or_one_word

0 commit comments

Comments
 (0)