Skip to content

全文検索: バイナリファイルのパース時に最大文字数を超えた場合にコンテンツ内容が反映されない 対応#2009

Open
xlei-duoce wants to merge 2 commits intomasterfrom
feature/fulltext-1970-binary-max-length-fix
Open

全文検索: バイナリファイルのパース時に最大文字数を超えた場合にコンテンツ内容が反映されない 対応#2009
xlei-duoce wants to merge 2 commits intomasterfrom
feature/fulltext-1970-binary-max-length-fix

Conversation

@xlei-duoce
Copy link
Copy Markdown
Contributor

対応内容

closes #1970

動作確認・スクリーンショット(任意)

1970_テストエビデンス.xlsx

レビュー観点・補足情報(任意)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本PRは、全文検索のバイナリ解析(Apache Tika)において、最大文字数(writeLimit)超過時に例外で処理が中断されてコンテンツが反映されない問題(Issue #1970)に対応し、超過時は警告ログを出しつつ最大文字数までの抽出結果を返せるようにする変更です。

Changes:

  • SAXException に加えて TikaException もまとめて捕捉し、writeLimit 超過例外の場合は例外を握りつつ処理継続するように修正
  • Tika 1/2 系の writeLimit 超過例外を(クラス名で)判定できるよう定数化し、原因(cause)チェーンを辿って判定するヘルパーを追加
  • WARNログをプレースホルダ形式に変更

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

全文検索: バイナリファイルのパース時に最大文字数を超えた場合にコンテンツ内容が反映されない

2 participants