プロジェクト

全般

プロフィール

Vote #76728

完了

Fix tokenization of phrases with non-ascii chars

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Search engine_16
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
16
version_id:
107
issue_org_id:
20730
author_id:
40856
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

\w only matches ASCII characters, we should either use @[:alnum:]@ instead or simply match all non-@"@ characters for the phrase. Test case included.


journals

+1

Search keyword '"日本語 テスト"' (written in Japanese) matches both "日本語 テスト" and "日本語テスト" in the current trunk, but it should not match the latter.

*expected:*
<pre>
Redmine::Search::Fetcher.new('"日本語 テスト"', ...).tokens => ['日本語 テスト']
</pre>

*actual:*
<pre>
Redmine::Search::Fetcher.new('"日本語 テスト"', ...).tokens => ['日本語', 'テスト']
</pre>

This behavior can be fixed by this patch.
--------------------------------------------------------------------------------
Patch applied, thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリSearch engine_16 にセット
  • 対象バージョン3.0.6_107 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0