- group id : com.github.lucene-gosen
- artifact id : lucene-gosen
We upload three types jar file
- lucene-gosen-.jar : Only java library, not include dictionary.
- lucene-gosen--ipadic.jar : Java library with IPA dictionary.
- lucene-gosen--naist-chasen.jar : Java library with Naist Chasen dictionary
- Download jar file from Maven Central Repository
- create <your_solr_home>/<collection_dir>/lib and put this jar file in it.
- copy stopwords_ja.txt and stoptags_ja.txt into <your_solr_home>/<collection_dir>/conf/lang
- add "text_ja_gosen" fieldtype: see example/schema.xml.snippet for example configuration.
refer to example/ for an example japanese configuration with comments explaining what the various configuration options are.
Add dependency to pom.xml.
<dependencies>
<dependency>
<groupId>com.github.lucene-gosen</groupId>
<artifactId>lucene-gosen</artifactId>
<version>6.0.1</version>
<classifier>ipadic</classifier>
</dependency>
...
</dependencies>
- Download jar file from Maven Central Repository
- add this jar file to your classpath, and use GosenAnalyzer, or make your own analyzer from the various filters. Its recommended you extend ReusableAnalyzerBase to make any custom analyzer!
You can build the project using Gradle.
Build only jar file without dictionary
$ gradle jar
Build jar file with IPA dictionary
$ gradle jarWithIpaDic
Build jar file with Naist Chasen dictionary
$ gradle jarWithNaistChasen