Subject: [PATCH] Patch: override search limit due to Redmine::Search::Tokenizer --- Index: app/views/settings/_issues.html.erb IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/app/views/settings/_issues.html.erb b/app/views/settings/_issues.html.erb --- a/app/views/settings/_issues.html.erb (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/app/views/settings/_issues.html.erb (date 1769003808059) @@ -25,6 +25,9 @@
<%= setting_text_field :issues_export_limit, :size => 6 %>
+<%= setting_text_field :search_token_limit, :size => 6 %> +<%= l(:text_search_token_limit_info) %>
+<%= setting_text_field :gantt_items_limit, :size => 6 %>
<%= setting_text_field :gantt_months_limit, :size => 6 %>
Index: config/locales/ar.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ar.yml b/config/locales/ar.yml --- a/config/locales/ar.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ar.yml (date 1769003808079) @@ -1111,6 +1111,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "الحد الأقصى من الرموز المميزة لتصفية الكلمات الرئيسية" + text_search_token_limit_info: "استخدم 0 لعدد غير محدود من الرموز (قد يؤثر على الأداء)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/az.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/az.yml b/config/locales/az.yml --- a/config/locales/az.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/az.yml (date 1769003808116) @@ -1202,6 +1202,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Filtr açar sözləri üçün maksimum işarələr" + text_search_token_limit_info: "Limitsiz token üçün 0 istifadə edin (performans təsir göstərə bilər)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/bg.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/bg.yml b/config/locales/bg.yml --- a/config/locales/bg.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/bg.yml (date 1769003808152) @@ -515,6 +515,8 @@ setting_email_domains_allowed: Разрешени имейл домейни setting_email_domains_denied: Забранени имейл домейни setting_search_results_per_page: Резултати от търсене на страница + setting_search_token_limit: "Максимален брой токени за филтриране на ключови думи" + text_search_token_limit_info: "Използвайте 0 за неограничени токени (може да повлияе на производителността)" setting_attachment_extensions_allowed: Позволени типове на файлове setting_attachment_extensions_denied: Разрешени типове на файлове setting_new_item_menu_tab: Меню-елемент за добавяне на нови обекти (+) Index: config/locales/bs.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/bs.yml b/config/locales/bs.yml --- a/config/locales/bs.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/bs.yml (date 1769003808172) @@ -1114,6 +1114,8 @@ label_enable_notifications: Omogući notifikacije label_disable_notifications: Onemogući notifikacije setting_search_results_per_page: Broj rezultata po stranici + setting_search_token_limit: "Maksimalan broj tokena za ključne riječi filtera" + text_search_token_limit_info: "Koristite 0 za neograničene tokene (može utjecati na performanse)" label_blank_value: prazno permission_copy_issues: Kopiraj tikete error_password_expired: Vaša šifra je istekla i administrator od vas traži njenu promjenu. Index: config/locales/ca.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ca.yml b/config/locales/ca.yml --- a/config/locales/ca.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ca.yml (date 1769003808195) @@ -1108,6 +1108,8 @@ label_enable_notifications: "Activar notificacions" label_disable_notifications: "Desactivar notificacions" setting_search_results_per_page: "Cercar resultats per pàgina" + setting_search_token_limit: "Nombre màxim de fitxes per a paraules clau de filtre" + text_search_token_limit_info: "Utilitzeu 0 per a fitxes il·limitades (pot afectar el rendiment)" label_blank_value: "blanc" permission_copy_issues: "Copiar incidència" error_password_expired: "La teva contrasenya ha expirat, és necessari canviar-la" Index: config/locales/cs.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/cs.yml b/config/locales/cs.yml --- a/config/locales/cs.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/cs.yml (date 1769003808242) @@ -1111,6 +1111,8 @@ label_enable_notifications: Povolit notifikace label_disable_notifications: Zakázat notifikace setting_search_results_per_page: Vyhledaných výsledků na stránku + setting_search_token_limit: "Maximální počet tokenů pro klíčová slova filtru" + text_search_token_limit_info: "Použijte 0 pro neomezený počet tokenů (může ovlivnit výkon)" label_blank_value: prázdný permission_copy_issues: Kopírovat úkoly error_password_expired: Platnost vašeho hesla vypršela a administrátor vás žádá o jeho změnu. Index: config/locales/da.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/da.yml b/config/locales/da.yml --- a/config/locales/da.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/da.yml (date 1769003808264) @@ -1128,6 +1128,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maksimalt antal tokens for filtersøgeord" + text_search_token_limit_info: "Brug 0 for ubegrænsede tokens (kan påvirke ydeevnen)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/de.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/de.yml b/config/locales/de.yml --- a/config/locales/de.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/de.yml (date 1769003808286) @@ -1173,6 +1173,8 @@ label_enable_notifications: Benachrichtigungen aktivieren label_disable_notifications: Benachrichtigungen deaktivieren setting_search_results_per_page: Suchergebnisse pro Seite + setting_search_token_limit: "Maximale Token für Filterschlüsselwörter" + text_search_token_limit_info: "Verwenden Sie 0 für unbegrenzte Token (kann sich auf die Leistung auswirken)" label_blank_value: leer permission_copy_issues: Tickets kopieren error_password_expired: Ihr Passwort ist abgelaufen oder der Administrator verlangt eine Passwortänderung. Index: config/locales/el.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/el.yml b/config/locales/el.yml --- a/config/locales/el.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/el.yml (date 1769003808312) @@ -1111,6 +1111,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Μέγιστα διακριτικά για λέξεις-κλειδιά φιλτραρίσματος" + text_search_token_limit_info: "Χρησιμοποιήστε το 0 για απεριόριστα διακριτικά (μπορεί να επηρεάσει την απόδοση)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/en.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/en.yml b/config/locales/en.yml --- a/config/locales/en.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/en.yml (date 1769003808339) @@ -516,6 +516,8 @@ setting_email_domains_allowed: Allowed email domains setting_email_domains_denied: Disallowed email domains setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maximum tokens for filter keywords" + text_search_token_limit_info: "Use 0 for unlimited tokens (may impact performance)" setting_attachment_extensions_allowed: Allowed extensions setting_attachment_extensions_denied: Disallowed extensions setting_new_item_menu_tab: Project menu tab for creating new objects Index: config/locales/en-GB.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml --- a/config/locales/en-GB.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/en-GB.yml (date 1769003808362) @@ -1118,6 +1118,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maximum tokens for filter keywords" + text_search_token_limit_info: "Use 0 for unlimited tokens (may impact performance)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/es.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/es.yml b/config/locales/es.yml --- a/config/locales/es.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/es.yml (date 1769003808392) @@ -1146,6 +1146,8 @@ label_enable_notifications: Permitir Notificaciones label_disable_notifications: No Permitir Notificaciones setting_search_results_per_page: Buscar resultados por página + setting_search_token_limit: "Tokens máximos para palabras clave de filtro" + text_search_token_limit_info: "Utilice 0 para tokens ilimitados (puede afectar el rendimiento)" label_blank_value: blanco permission_copy_issues: Copiar petición error_password_expired: Tu contraseña ha expirado o tu administrador requiere que la cambies. Index: config/locales/es-PA.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/es-PA.yml b/config/locales/es-PA.yml --- a/config/locales/es-PA.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/es-PA.yml (date 1769003808418) @@ -1148,6 +1148,8 @@ label_enable_notifications: Permitir Notificaciones label_disable_notifications: No Permitir Notificaciones setting_search_results_per_page: Buscar resultados por página + setting_search_token_limit: "Tokens máximos para palabras clave de filtro" + text_search_token_limit_info: "Utilice 0 para tokens ilimitados (puede afectar el rendimiento)" label_blank_value: blanco permission_copy_issues: Copiar incidencias error_password_expired: Tu contraseña ha expirado o tu administrador requiere que la cambies. Index: config/locales/et.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/et.yml b/config/locales/et.yml --- a/config/locales/et.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/et.yml (date 1769003808447) @@ -1118,6 +1118,8 @@ label_enable_notifications: "Saada teavitusi" label_disable_notifications: "Ära saada teavitusi" setting_search_results_per_page: "Otsitulemusi lehe kohta" + setting_search_token_limit: "Maksimaalne lubade arv filtri märksõnade jaoks" + text_search_token_limit_info: "Kasutage piiramatute märkide jaoks 0 (võib mõjutada jõudlust)" label_blank_value: "tühi" permission_copy_issues: "Kopeeri teemad" error_password_expired: "Su parool on aegunud või administraator nõuab sult selle vahetamist" Index: config/locales/eu.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/eu.yml b/config/locales/eu.yml --- a/config/locales/eu.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/eu.yml (date 1769003808468) @@ -1112,6 +1112,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Iragazki-hitzetarako gehienezko tokenak" + text_search_token_limit_info: "Erabili 0 token mugagabeetarako (errendimenduan eragina izan dezake)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/fa.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/fa.yml b/config/locales/fa.yml --- a/config/locales/fa.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/fa.yml (date 1769003808501) @@ -512,6 +512,8 @@ setting_email_domains_allowed: دامنههای مجاز برای نشانی رایانامه setting_email_domains_denied: دامنههای غیرمجاز برای نشانی رایانامه setting_search_results_per_page: تعداد نتایج جستجو در صفحه + setting_search_token_limit: "حداکثر توکن برای فیلتر کردن کلمات کلیدی" + text_search_token_limit_info: "از 0 برای توکن های نامحدود استفاده کنید (ممکن است بر عملکرد تأثیر بگذارد)" setting_attachment_extensions_allowed: پسوندهای مجاز setting_attachment_extensions_denied: پسوندهای غیرمجاز setting_new_item_menu_tab: منوی پروژه برای ساخت اجزاء جدید Index: config/locales/fi.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/fi.yml b/config/locales/fi.yml --- a/config/locales/fi.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/fi.yml (date 1769003808533) @@ -1129,6 +1129,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Suodattimen avainsanojen enimmäismäärä" + text_search_token_limit_info: "Käytä 0 rajoittamattomille tunnuksille (voi vaikuttaa suorituskykyyn)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/fr.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/fr.yml b/config/locales/fr.yml --- a/config/locales/fr.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/fr.yml (date 1769003808566) @@ -467,6 +467,8 @@ setting_link_copied_issue: Lier les demandes lors de la copie setting_max_additional_emails: Nombre maximal d'adresses email additionnelles setting_search_results_per_page: Résultats de recherche affichés par page + setting_search_token_limit: "Nombre maximal de jetons pour les mots-clés de filtre" + text_search_token_limit_info: "Utilisez 0 pour un nombre illimité de jetons (peut avoir un impact sur les performances)" setting_attachment_extensions_allowed: Extensions autorisées setting_attachment_extensions_denied: Extensions non autorisées setting_sys_api_key: Clé de protection de l'API Index: config/locales/gl.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/gl.yml b/config/locales/gl.yml --- a/config/locales/gl.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/gl.yml (date 1769003808594) @@ -1120,6 +1120,8 @@ label_enable_notifications: Activar notificacións label_disable_notifications: Desactivar notificacións setting_search_results_per_page: Resultados da busca por páxina + setting_search_token_limit: "Fichas máximas para palabras clave de filtro" + text_search_token_limit_info: "Usa 0 para tokens ilimitados (pode afectar o rendemento)" label_blank_value: En branco permission_copy_issues: Copiar peticións error_password_expired: A túa contrasinal caducou ou o administrador obrígate Index: config/locales/he.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/he.yml b/config/locales/he.yml --- a/config/locales/he.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/he.yml (date 1769003808628) @@ -1116,6 +1116,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "מקסימום אסימונים עבור מילות מפתח מסנן" + text_search_token_limit_info: "השתמש ב-0 עבור אסימונים ללא הגבלה (עשוי להשפיע על הביצועים)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/hr.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/hr.yml b/config/locales/hr.yml --- a/config/locales/hr.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/hr.yml (date 1769003808687) @@ -1108,6 +1108,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maksimalan broj tokena za ključne riječi filtra" + text_search_token_limit_info: "Koristite 0 za neograničene tokene (može utjecati na izvedbu)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/hu.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/hu.yml b/config/locales/hu.yml --- a/config/locales/hu.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/hu.yml (date 1769003808731) @@ -1119,6 +1119,8 @@ label_enable_notifications: Értesítések engedélyezése label_disable_notifications: Értesítések letiltása setting_search_results_per_page: Találati eredmények száma oldalanként + setting_search_token_limit: "Maximális tokenek a szűrő kulcsszavaihoz" + text_search_token_limit_info: "Használjon 0-t korlátlan számú tokenhez (befolyásolhatja a teljesítményt)" label_blank_value: üres permission_copy_issues: Feladatok másolása error_password_expired: "A jelszava lejárt, vagy az adminisztrátor kérte a megváltoztatását." Index: config/locales/id.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/id.yml b/config/locales/id.yml --- a/config/locales/id.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/id.yml (date 1769003808756) @@ -1113,6 +1113,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Token maksimum untuk kata kunci filter" + text_search_token_limit_info: "Gunakan 0 untuk token tanpa batas (dapat memengaruhi kinerja)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/it.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/it.yml b/config/locales/it.yml --- a/config/locales/it.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/it.yml (date 1769003808797) @@ -529,6 +529,8 @@ setting_email_domains_allowed: Domini di posta elettronica consentiti setting_email_domains_denied: Domini di posta elettronica non consentiti setting_search_results_per_page: Risultati per pagina + setting_search_token_limit: "Token massimi per le parole chiave del filtro" + text_search_token_limit_info: "Utilizza 0 per token illimitati (potrebbe influire sulle prestazioni)" setting_attachment_extensions_allowed: Estensioni abilitate setting_attachment_extensions_denied: Estensioni disabilitate setting_new_item_menu_tab: Scheda di creazione oggetti nel menu del progetto Index: config/locales/ja.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ja.yml b/config/locales/ja.yml --- a/config/locales/ja.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ja.yml (date 1769003808834) @@ -1140,6 +1140,8 @@ label_enable_notifications: 通知を有効にする label_disable_notifications: 通知を無効にする setting_search_results_per_page: ページごとの検索結果表示件数 + setting_search_token_limit: "フィルタキーワードの最大トークン" + text_search_token_limit_info: "トークンを無制限にするには 0 を使用します (パフォーマンスに影響を与える可能性があります)" label_blank_value: 空 permission_copy_issues: チケットのコピー error_password_expired: パスワードの有効期限が過ぎたか、システム管理者より変更を求められています。 Index: config/locales/ko.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ko.yml b/config/locales/ko.yml --- a/config/locales/ko.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ko.yml (date 1769003808882) @@ -1148,6 +1148,8 @@ label_enable_notifications: 알림 켜기 label_disable_notifications: 알림 끄기 setting_search_results_per_page: 페이지당 검색 결과 + setting_search_token_limit: "필터 키워드의 최대 토큰" + text_search_token_limit_info: "토큰을 무제한으로 사용하려면 0을 사용하세요(성능에 영향을 미칠 수 있음)." label_blank_value: blank permission_copy_issues: 일감 복사 error_password_expired: 암호가 만료되었거나 관리자가 변경하도록 설정하였습니다. Index: config/locales/lt.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/lt.yml b/config/locales/lt.yml --- a/config/locales/lt.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/lt.yml (date 1769003808931) @@ -447,6 +447,8 @@ setting_link_copied_issue: Susieti darbus kopijavimo metu setting_max_additional_emails: Maksimalus skaičius papildomų elektronikių laiškų adresų setting_search_results_per_page: Paieškos rezultatai puslapyje + setting_search_token_limit: "Maksimalus filtro raktinių žodžių prieigos raktų skaičius" + text_search_token_limit_info: "Naudokite 0 neribotam žetonų kiekiui (gali turėti įtakos našumui)" setting_attachment_extensions_allowed: Leistini plėtiniai setting_attachment_extensions_denied: Neleistini plėtiniai Index: config/locales/lv.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/lv.yml b/config/locales/lv.yml --- a/config/locales/lv.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/lv.yml (date 1769003808977) @@ -1105,6 +1105,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maksimālais marķieru skaits filtra atslēgvārdiem" + text_search_token_limit_info: "Izmantojiet 0 neierobežotiem marķieriem (var ietekmēt veiktspēju)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/mk.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/mk.yml b/config/locales/mk.yml --- a/config/locales/mk.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/mk.yml (date 1769003809017) @@ -1111,6 +1111,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Максимални токени за филтрирање на клучни зборови" + text_search_token_limit_info: "Користете 0 за неограничени токени (може да влијае на перформансите)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/mn.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/mn.yml b/config/locales/mn.yml --- a/config/locales/mn.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/mn.yml (date 1769003809058) @@ -1111,6 +1111,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Шүүлтүүрийн түлхүүр үгсэд зориулсан хамгийн их жетон" + text_search_token_limit_info: "Хязгааргүй тэмдэгтийн хувьд 0-г ашиглана уу (гүйцэтгэлд нөлөөлж болзошгүй)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/nl.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/nl.yml b/config/locales/nl.yml --- a/config/locales/nl.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/nl.yml (date 1769003809079) @@ -1090,6 +1090,8 @@ label_enable_notifications: Notificaties inschakelen label_disable_notifications: Notificaties uitschakelen setting_search_results_per_page: Zoekresultaten per pagina + setting_search_token_limit: "Maximale tokens voor filterzoekwoorden" + text_search_token_limit_info: "Gebruik 0 voor onbeperkte tokens (kan van invloed zijn op de prestaties)" label_blank_value: leeg permission_copy_issues: Issues kopiëren error_password_expired: Uw wachtwoord is verlopen of moet gewijzigd worden op vraag van een beheerder. Index: config/locales/no.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/no.yml b/config/locales/no.yml --- a/config/locales/no.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/no.yml (date 1769003809121) @@ -1102,6 +1102,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maksimalt antall tokens for filtersøkeord" + text_search_token_limit_info: "Bruk 0 for ubegrensede tokens (kan påvirke ytelsen)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/pl.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/pl.yml b/config/locales/pl.yml --- a/config/locales/pl.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/pl.yml (date 1769003809150) @@ -517,6 +517,8 @@ setting_email_domains_allowed: Dozwolone domeny adresów e-mail setting_email_domains_denied: Niedozwolone domeny adresów e-mail setting_search_results_per_page: Limit wyników wyszukiwania na stronie + setting_search_token_limit: "Maksymalna liczba tokenów dla słów kluczowych filtra" + text_search_token_limit_info: "Użyj 0, aby uzyskać nieograniczoną liczbę tokenów (może mieć wpływ na wydajność)" setting_attachment_extensions_allowed: Dozwolone rozszerzenia setting_attachment_extensions_denied: Niedozwolone rozszerzenia setting_new_item_menu_tab: Zakładka w menu do tworzenia nowych obiektów Index: config/locales/pt.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/pt.yml b/config/locales/pt.yml --- a/config/locales/pt.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/pt.yml (date 1769003809201) @@ -1113,6 +1113,8 @@ label_enable_notifications: Ativar notificações label_disable_notifications: Desativar notificações setting_search_results_per_page: Resultados de pesquisa por página + setting_search_token_limit: "Máximo de tokens para palavras-chave de filtro" + text_search_token_limit_info: "Use 0 para tokens ilimitados (pode afetar o desempenho)" label_blank_value: vazio permission_copy_issues: Copiar tarefas error_password_expired: A sua palavra-chave expirou ou o administrador exige que a altere. Index: config/locales/pt-BR.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml --- a/config/locales/pt-BR.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/pt-BR.yml (date 1769003809244) @@ -1131,6 +1131,8 @@ label_enable_notifications: Habilitar notificações label_disable_notifications: Desabilitar notificações setting_search_results_per_page: Resultados de pesquisa por página + setting_search_token_limit: "Máximo de tokens para palavras-chave de filtro" + text_search_token_limit_info: "Use 0 para tokens ilimitados (pode afetar o desempenho)" label_blank_value: Branco permission_copy_issues: Copiar tarefas error_password_expired: Sua senha expirou ou requer atualização Index: config/locales/ro.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ro.yml b/config/locales/ro.yml --- a/config/locales/ro.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ro.yml (date 1769003809278) @@ -1106,6 +1106,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Numărul maxim de simboluri pentru cuvintele cheie de filtrare" + text_search_token_limit_info: "Utilizați 0 pentru jetoane nelimitate (poate afecta performanța)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/ru.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ru.yml b/config/locales/ru.yml --- a/config/locales/ru.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ru.yml (date 1769003809312) @@ -1211,6 +1211,8 @@ label_enable_notifications: Включить уведомления label_disable_notifications: Выключить уведомления setting_search_results_per_page: Количество найденных результатов на страницу + setting_search_token_limit: "Максимальное количество токенов для ключевых слов фильтра" + text_search_token_limit_info: "Используйте 0 для неограниченного количества токенов (может повлиять на производительность)." label_blank_value: пусто permission_copy_issues: Копирование задач error_password_expired: Время действия вашего пароля истекло или администратор потребовал сменить его. Index: config/locales/sk.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/sk.yml b/config/locales/sk.yml --- a/config/locales/sk.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/sk.yml (date 1769003809356) @@ -1100,6 +1100,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Maximálny počet tokenov pre kľúčové slová filtra" + text_search_token_limit_info: "Použite 0 pre neobmedzený počet tokenov (môže ovplyvniť výkon)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/sl.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/sl.yml b/config/locales/sl.yml --- a/config/locales/sl.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/sl.yml (date 1769003809394) @@ -1111,6 +1111,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Največje število žetonov za ključne besede filtra" + text_search_token_limit_info: "Uporabite 0 za neomejene žetone (lahko vpliva na zmogljivost)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/sq.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/sq.yml b/config/locales/sq.yml --- a/config/locales/sq.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/sq.yml (date 1769003809417) @@ -490,6 +490,8 @@ setting_email_domains_allowed: Përkatësi email të lejuara setting_email_domains_denied: Përkatësi email të palejuara setting_search_results_per_page: Përfundime kërkimi për faqe + setting_search_token_limit: "Shenjat maksimale për filtrimin e fjalëve kyçe" + text_search_token_limit_info: "Përdorni 0 për shenja të pakufizuara (mund të ndikojë në performancën)" setting_attachment_extensions_allowed: Zgjatime të lejuara setting_attachment_extensions_denied: Zgjatime të palejuara setting_new_item_menu_tab: Skedë menuje projekti për krijim objektesh të rinj Index: config/locales/sr.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/sr.yml b/config/locales/sr.yml --- a/config/locales/sr.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/sr.yml (date 1769003809444) @@ -1112,6 +1112,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Максималан број токена за кључне речи филтера" + text_search_token_limit_info: "Користите 0 за неограничене токене (може утицати на перформансе)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/sr-YU.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/sr-YU.yml b/config/locales/sr-YU.yml --- a/config/locales/sr-YU.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/sr-YU.yml (date 1769003809473) @@ -1113,6 +1113,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "Максималан број токена за кључне речи филтера" + text_search_token_limit_info: "Користите 0 за неограничене токене (може утицати на перформансе)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/sv.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/sv.yml b/config/locales/sv.yml --- a/config/locales/sv.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/sv.yml (date 1769003809507) @@ -1143,6 +1143,8 @@ label_enable_notifications: Aktivera aviseringar label_disable_notifications: Avaktivera aviseringar setting_search_results_per_page: Sökresultat per sida + setting_search_token_limit: "Maximalt antal tokens för filtersökord" + text_search_token_limit_info: "Använd 0 för obegränsade tokens (kan påverka prestandan)" label_blank_value: blank permission_copy_issues: Kopiera ärenden error_password_expired: Ditt lösenord har gått ut eller administratören kräver att du ändrar det. Index: config/locales/ta-IN.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/ta-IN.yml b/config/locales/ta-IN.yml --- a/config/locales/ta-IN.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/ta-IN.yml (date 1769003809534) @@ -1116,6 +1116,8 @@ label_enable_notifications: அறிவிப்புகளை இயக்கு label_disable_notifications: அறிவிப்புகளை முடக்கு setting_search_results_per_page: ஒரு பக்கத்திற்கு தேடல் முடிவுகள் + setting_search_token_limit: "வடிகட்டி முக்கிய வார்த்தைகளுக்கான அதிகபட்ச டோக்கன்கள்" + text_search_token_limit_info: "வரம்பற்ற டோக்கன்களுக்கு 0 ஐப் பயன்படுத்தவும் (செயல்திறனை பாதிக்கலாம்)" label_blank_value: வெற்று permission_copy_issues: சிக்கல்களை நகலெடுக்கவும் error_password_expired: உங்கள் கடவுச்சொல் காலாவதியானது அல்லது நிர்வாகி உங்களுக்குத் தேவை Index: config/locales/th.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/th.yml b/config/locales/th.yml --- a/config/locales/th.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/th.yml (date 1769003809560) @@ -1107,6 +1107,8 @@ label_enable_notifications: Enable notifications label_disable_notifications: Disable notifications setting_search_results_per_page: Search results per page + setting_search_token_limit: "โทเค็นสูงสุดสำหรับคำหลักกรอง" + text_search_token_limit_info: "ใช้ 0 สำหรับโทเค็นไม่จำกัด (อาจส่งผลต่อประสิทธิภาพ)" label_blank_value: blank permission_copy_issues: Copy issues error_password_expired: Your password has expired or the administrator requires you Index: config/locales/tr.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/tr.yml b/config/locales/tr.yml --- a/config/locales/tr.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/tr.yml (date 1769003809583) @@ -1119,6 +1119,8 @@ label_enable_notifications: Bildirimleri aç label_disable_notifications: Bildirimleri kapat setting_search_results_per_page: Sayfa başına arama sonucu sayısı + setting_search_token_limit: "Filtre anahtar kelimeleri için maksimum belirteçler" + text_search_token_limit_info: "Sınırsız jeton için 0 kullanın (performansı etkileyebilir)" label_blank_value: boş permission_copy_issues: İşleri kopyala error_password_expired: Parolanızın süresi dolmuş veya yönetici parolanızı değiştirmenizi Index: config/locales/uk.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/uk.yml b/config/locales/uk.yml --- a/config/locales/uk.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/uk.yml (date 1769003809608) @@ -1114,6 +1114,8 @@ label_enable_notifications: Увімкнути сповіщення label_disable_notifications: Вимкнути сповіщення setting_search_results_per_page: Кількість знайдених результатів на сторінку + setting_search_token_limit: "Максимальна кількість токенів для ключових слів фільтра" + text_search_token_limit_info: "Використовуйте 0 для необмеженої кількості токенів (може вплинути на продуктивність)" label_blank_value: пусто permission_copy_issues: Копіювання задач error_password_expired: Термін дії вашого паролю закінчився або адміністратор запросив поміняти його. Index: config/locales/vi.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/vi.yml b/config/locales/vi.yml --- a/config/locales/vi.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/vi.yml (date 1769003809642) @@ -1158,6 +1158,8 @@ label_enable_notifications: Bật thông báo label_disable_notifications: Vô hiệu hóa thông báo setting_search_results_per_page: Kết quả tìm kiếm trên mỗi trang + setting_search_token_limit: "Mã thông báo tối đa cho từ khóa lọc" + text_search_token_limit_info: "Sử dụng 0 để nhận mã thông báo không giới hạn (có thể ảnh hưởng đến hiệu suất)" label_blank_value: trống permission_copy_issues: Sao chép vấn đề error_password_expired: Mật khẩu của bạn đã hết hạn hoặc quản trị viên yêu cầu bạn thay đổi nó. Index: config/locales/zh.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/zh.yml b/config/locales/zh.yml --- a/config/locales/zh.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/zh.yml (date 1769003809679) @@ -1109,6 +1109,8 @@ label_enable_notifications: 启用通知 label_disable_notifications: 禁用通知 setting_search_results_per_page: 每一页的搜索结果数 + setting_search_token_limit: "过滤关键字的最大标记数" + text_search_token_limit_info: "使用 0 表示无限令牌(可能会影响性能)" label_blank_value: 空白 permission_copy_issues: 复制问题 error_password_expired: 您的密码已经过期或是管理员要求您修改密码. Index: config/locales/zh-TW.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml --- a/config/locales/zh-TW.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/locales/zh-TW.yml (date 1769003809722) @@ -540,6 +540,8 @@ setting_link_copied_issue: 複製時連結議題 setting_max_additional_emails: 其他電子郵件地址的最大值 setting_search_results_per_page: 每一頁的搜尋結果數目 + setting_search_token_limit: "過濾關鍵字的最大標記數" + text_search_token_limit_info: "使用 0 表示無限令牌(可能會影響性能)" setting_attachment_extensions_allowed: 允許使用的附檔名 setting_attachment_extensions_denied: 禁止使用的副檔名 setting_new_item_menu_tab: 建立新物件的專案功能分頁 Index: config/settings.yml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/config/settings.yml b/config/settings.yml --- a/config/settings.yml (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/config/settings.yml (date 1769003809750) @@ -93,6 +93,10 @@ default: '25,50,100' search_results_per_page: default: 10 +search_token_limit: + format: int + # Use 0 for unlimited tokens (may impact performance on large queries) + default: 5 mail_from: default: redmine@example.net plain_text_mail: Index: lib/redmine/search.rb IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/lib/redmine/search.rb b/lib/redmine/search.rb --- a/lib/redmine/search.rb (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/lib/redmine/search.rb (date 1769003809784) @@ -127,8 +127,9 @@ end class Tokenizer - def initialize(question) + def initialize(question, max_tokens: nil) @question = question.to_s + @max_tokens = max_tokens end def tokens @@ -141,8 +142,18 @@ end # tokens must be at least 2 characters long # but for Chinese characters (Chinese HANZI/Japanese KANJI), tokens can be one character - # no more than 5 tokens to search for - tokens.uniq.select{|w| w.length > 1 || w =~ /\p{Han}/}.first 5 + # no more than max_tokens to search for + tokens = tokens.uniq.select{|w| w.length > 1 || w =~ /\p{Han}/} + max_tokens ? tokens.first(max_tokens) : tokens + end + + private + + def max_tokens + limit = (@max_tokens.nil? ? Setting.search_token_limit : @max_tokens).to_i + return if limit <= 0 + + limit end end Index: test/unit/lib/redmine/search_test.rb IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/test/unit/lib/redmine/search_test.rb b/test/unit/lib/redmine/search_test.rb --- a/test/unit/lib/redmine/search_test.rb (revision 71de111e4f41dcd33be148be2241f5d49a73faa5) +++ b/test/unit/lib/redmine/search_test.rb (date 1769003809813) @@ -35,4 +35,18 @@ value = '"phrase one" "phrase two"' assert_equal ["phrase one", "phrase two"], Redmine::Search::Tokenizer.new(value).tokens end + + def test_tokenize_respects_search_token_limit_setting + value = "one two three four five six" + with_settings :search_token_limit => '10' do + assert_equal %w[one two three four five six], Redmine::Search::Tokenizer.new(value).tokens + end + end + + def test_tokenize_allows_unlimited_tokens + value = "one two three four five six" + with_settings :search_token_limit => '0' do + assert_equal %w[one two three four five six], Redmine::Search::Tokenizer.new(value).tokens + end + end end