From 8bd88aa9cf1df13a3b7c873dcbcc334ca09f3783 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Fri, 5 Aug 2016 17:21:31 -0400 Subject: [PATCH] Upgrade to Lucene 6.1.0 --- README.md | 12 ++++++------ .../morphology/analyzer/MorphologyAnalyzer.java | 2 +- pom.xml | 12 ++++++++---- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 34f6fcd..192ab35 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,28 @@ # Russian Morphology for lucene -Russian and English morphology for java and lucene 5.1 framework based on open source dictionary from site [АОТ](http://aot.ru). It use dictionary base morphology with some heuristics for unknown words. It support homonym for example for Russian word "вина" it gives two variants "вино" and "вина". +Russian and English morphology for java and lucene 6.1 framework based on open source dictionary from site [АОТ](http://aot.ru). It use dictionary base morphology with some heuristics for unknown words. It support homonym for example for Russian word "вина" it gives two variants "вино" and "вина". ### How to use First download -[morph-1.0.jar](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/morph/1.1/morph-1.1.jar) -and add it to your class path. When download [Russian](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/russian/1.1/russian-1.1.jar) or -[English](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/english/1.1/english-1.1.jar) package. +[morph-1.2.jar](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/morph/1.2/morph-1.2.jar) +and add it to your class path. When download [Russian](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/russian/1.2/russian-1.2.jar) or +[English](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/english/1.2/english-1.2.jar) package. If you use maven you can add dependency org.apache.lucene.morphology russian - 1.1 + 1.2 org.apache.lucene.morphology english - 1.1 + 1.2 Don't forget add link to repository diff --git a/morph/src/main/java/org/apache/lucene/morphology/analyzer/MorphologyAnalyzer.java b/morph/src/main/java/org/apache/lucene/morphology/analyzer/MorphologyAnalyzer.java index 0e9bec1..3e84f39 100644 --- a/morph/src/main/java/org/apache/lucene/morphology/analyzer/MorphologyAnalyzer.java +++ b/morph/src/main/java/org/apache/lucene/morphology/analyzer/MorphologyAnalyzer.java @@ -76,7 +76,7 @@ public class MorphologyAnalyzer extends Analyzer { return new TokenStreamComponents(src, filter) { @Override - protected void setReader(final Reader reader) throws IOException { + protected void setReader(final Reader reader) { super.setReader(reader); } }; diff --git a/pom.xml b/pom.xml index fdd1236..b542073 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,7 @@ - 5.1.0 + 6.1.0 @@ -97,14 +97,16 @@ org.apache.maven.plugins maven-compiler-plugin + 3.5.1 - 1.5 - 1.5 + 1.8 + 1.8 maven-license-plugin - com.mathieucarbou.mojo + com.google.code.maven-license-plugin + 1.4.0 ${project.parent.basedir}
etc/header.txt
@@ -135,6 +137,7 @@ maven-source-plugin + 3.0.1 attach-sources @@ -146,6 +149,7 @@ maven-javadoc-plugin + 2.10.4 attach-javadocs