Skip to content

Lucene: カスタムのIndexWriterConfigを削除処理時にも適用する#2077

Merged
NonakaKazuhiro merged 1 commit into
masterfrom
feature/2072-fullTextSearch
Jun 5, 2026
Merged

Lucene: カスタムのIndexWriterConfigを削除処理時にも適用する#2077
NonakaKazuhiro merged 1 commit into
masterfrom
feature/2072-fullTextSearch

Conversation

@NonakaKazuhiro

Copy link
Copy Markdown
Contributor

対応内容

ucene: カスタムのIndexWriterConfigを削除処理時にも適用する
closes #2072

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

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Lucene の全文検索インデックス再生成(FulltextSearchManager#recrawlAllEntity())において、インデックス削除→Commit のタイミングでもカスタム IndexWriterConfig(特に IndexDeletionPolicy)が適用されるようにし、削除後の Commit でデフォルトポリシーに戻ってしまう問題(#2072)を解消する変更です。

Changes:

  • インデックス全削除処理(deleteAllIndex())の IndexWriter 生成を EntityIndexWriter 経由に変更し、IndexWriterSetting#createIndexWriterConfig(...) を適用するように更新。

@NonakaKazuhiro NonakaKazuhiro merged commit d4c929e into master Jun 5, 2026
5 checks passed
@NonakaKazuhiro NonakaKazuhiro deleted the feature/2072-fullTextSearch branch June 5, 2026 07:46
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.

Lucene: カスタムのIndexWriterConfigを削除処理時にも適用する

3 participants