From 4fa99c201493b4c689b68911eb97f4e51ecc9afe Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Fri, 26 Oct 2018 16:03:42 +0200 Subject: [PATCH] LUCENE-8462: Revert ant-patch-snowball modifications. This modifications only worked with the latest version of snowball and were specifically applied to handle the new Arabic stemmer. This change reverts these modifications since they are not compatible with the other stemmer which are created from revision 502. --- lucene/analysis/common/README.txt | 2 + lucene/analysis/common/build.xml | 88 ++++++------------------------- 2 files changed, 17 insertions(+), 73 deletions(-) diff --git a/lucene/analysis/common/README.txt b/lucene/analysis/common/README.txt index a9fc5f16acc..f3382f875c4 100644 --- a/lucene/analysis/common/README.txt +++ b/lucene/analysis/common/README.txt @@ -15,6 +15,8 @@ A few changes has been made to the static Snowball code and compiled stemmers: If you want to add new stemmers, use the exact revision / Git commit above to generate the Java class, place it in src/java/org/tartarus/snowball/ext, and finally execute "ant patch-snowball". The latter will change the APIs of the generated class to make it compatible. Already patched classes are not modified. +The Arabic stemmer has been generated from https://github.com/snowballstem/snowball/blob/master/algorithms/arabic.sbl +using the latest version of snowball and patched manually. IMPORTANT NOTICE ON BACKWARDS COMPATIBILITY! diff --git a/lucene/analysis/common/build.xml b/lucene/analysis/common/build.xml index 2064e1958d8..b8eb37a8b4f 100644 --- a/lucene/analysis/common/build.xml +++ b/lucene/analysis/common/build.xml @@ -17,10 +17,10 @@ limitations under the License. --> - + - Analyzers for indexing content in different languages and domains. + Analyzers for indexing content in different languages and domains. @@ -88,7 +88,7 @@ + inline="true" conf="default" transitive="true" pathid="icu4j.classpath"/> @@ -102,10 +102,10 @@ + classname="org.apache.lucene.analysis.standard.GenerateJflexTLDMacros" + dir="." + fork="true" + failonerror="true"> @@ -117,8 +117,8 @@ + srcdir="src/tools/java" + destdir="${build.dir}/classes/tools"> @@ -128,71 +128,13 @@ - - - - + + - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +