From c079762f6528c3986b50d21136e0bf31255fb729 Mon Sep 17 00:00:00 2001 From: John Niang Date: Tue, 31 Jan 2023 15:14:09 +0800 Subject: [PATCH] Upgrade Lucene to 9.5.0 (#3190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement /area core /milestone 2.2.x #### What this PR does / why we need it: See https://lucene.apache.org/core/9_5_0/MIGRATE.html for more. #### Special notes for your reviewer: Please confirm that the search widget is working fine. #### Does this PR introduce a user-facing change? ```release-note 升级依赖 Lucene 至 9.5.0 ``` --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 4c81b4f8a..7c5935389 100644 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,7 @@ ext { jsoup = '1.15.3' jsonPatch = "1.13" springDocOpenAPI = "2.0.2" + lucene = "9.5.0" } dependencies { @@ -69,9 +70,10 @@ dependencies { implementation "net.bytebuddy:byte-buddy" // Apache Lucene - implementation 'org.apache.lucene:lucene-core:9.4.1' - implementation 'org.apache.lucene:lucene-queryparser:9.4.1' - implementation 'org.apache.lucene:lucene-highlighter:9.4.1' + implementation "org.apache.lucene:lucene-core:$lucene" + implementation "org.apache.lucene:lucene-queryparser:$lucene" + implementation "org.apache.lucene:lucene-highlighter:$lucene" + implementation "org.apache.lucene:lucene-backward-codecs:$lucene" implementation 'cn.shenyanchao.ik-analyzer:ik-analyzer:9.0.0' implementation "org.apache.commons:commons-lang3:$commonsLang3"