Upgrade to Lucene 6.1.0

This commit is contained in:
Igor Motov 2016-08-05 17:21:31 -04:00
parent 22caba4f7c
commit 8bd88aa9cf
3 changed files with 15 additions and 11 deletions

View File

@ -1,28 +1,28 @@
# Russian Morphology for lucene # 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 ### How to use
First download First download
[morph-1.0.jar](https://bintray.com/artifact/download/akuznetsov/russianmorphology/org/apache/lucene/morphology/morph/1.1/morph-1.1.jar) [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.1/russian-1.1.jar) or 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.1/english-1.1.jar) package. [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 If you use maven you can add dependency
<dependency> <dependency>
<groupId>org.apache.lucene.morphology</groupId> <groupId>org.apache.lucene.morphology</groupId>
<artifactId>russian</artifactId> <artifactId>russian</artifactId>
<version>1.1</version> <version>1.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.lucene.morphology</groupId> <groupId>org.apache.lucene.morphology</groupId>
<artifactId>english</artifactId> <artifactId>english</artifactId>
<version>1.1</version> <version>1.2</version>
</dependency> </dependency>
Don't forget add link to repository Don't forget add link to repository

View File

@ -76,7 +76,7 @@ public class MorphologyAnalyzer extends Analyzer {
return new TokenStreamComponents(src, filter) { return new TokenStreamComponents(src, filter) {
@Override @Override
protected void setReader(final Reader reader) throws IOException { protected void setReader(final Reader reader) {
super.setReader(reader); super.setReader(reader);
} }
}; };

12
pom.xml
View File

@ -16,7 +16,7 @@
</scm> </scm>
<properties> <properties>
<lucene.version>5.1.0</lucene.version> <lucene.version>6.1.0</lucene.version>
</properties> </properties>
<distributionManagement> <distributionManagement>
@ -97,14 +97,16 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration> <configuration>
<source>1.5</source> <source>1.8</source>
<target>1.5</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <!-- usage: http://code.google.com/p/maven-license-plugin/wiki/HowTo --> <plugin> <!-- usage: http://code.google.com/p/maven-license-plugin/wiki/HowTo -->
<artifactId>maven-license-plugin</artifactId> <artifactId>maven-license-plugin</artifactId>
<groupId>com.mathieucarbou.mojo</groupId> <groupId>com.google.code.maven-license-plugin</groupId>
<version>1.4.0</version>
<configuration> <configuration>
<basedir>${project.parent.basedir}</basedir> <basedir>${project.parent.basedir}</basedir>
<header>etc/header.txt</header> <header>etc/header.txt</header>
@ -135,6 +137,7 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>
@ -146,6 +149,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions> <executions>
<execution> <execution>
<id>attach-javadocs</id> <id>attach-javadocs</id>