Skip to content

Commit

Permalink
version 0.3.0
Browse files Browse the repository at this point in the history
support elasticsearch 8.3 ~ 8.7
  • Loading branch information
yangyaofei committed Jun 1, 2023
1 parent e486d93 commit 2d823df
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
needs: release-create
strategy:
matrix:
elasticsearch-version: [ 8.2.3, 8.2.2, 8.2.1, 8.2.0, 8.1.3, 7.17.3, 7.16.3, 7.15.2, 7.14.2 ]
elasticsearch-version: [ 8.7.1, 8.6.2, 8.5.3, 8.4.3, 8.3.3 ]
runs-on: ubuntu-latest
steps:
- id: get_version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
elasticsearch-version: [ 8.2.3, 8.2.0 , 8.1.3, 7.17.3, 7.16.3, 7.15.2, 7.14.2]
elasticsearch-version: [ 8.7.1, 8.6.2, 8.5.3, 8.4.3, 8.3.3 ]
name: Test
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ An analysis plugin for Elasticsearch by using ICTCLAS/NLPIR

Analyzer: `ictclas_search`, `ictclas_index`

Supported version: 8.2.0 ~ 7.14.2
Supported version:

- 0.2.x: 8.2.0 ~ 7.14.2
- 0.3.x: 8.3.0 ~ 8.7.1

# Build

## 1. make config file `gradle.properties`

``` properties
elasticsearchVersion = 7.15.2
elasticsearchVersion = 8.7.1
```

## 2. build
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ esplugin {
}

group 'com.lingjoin'
version '0.2.6'
version '0.3.0'

java {
withSourcesJar()
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class IctclasAnalyzerProvider extends AbstractIndexAnalyzerProvider<Ictcl
* @param settings settings
*/
private IctclasAnalyzerProvider(IndexSettings indexSettings, Environment environment, String name, Settings settings, boolean fineSegment) {
super(indexSettings, name, settings);
super(name, settings);
// this.fineSegment = fineSegment;
// this.configuration = Configuration.getConfiguration(environment);
analyzer = new IctclasAnalyzer(Configuration.getConfiguration(environment), environment, fineSegment);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ private void getTokenResults(Reader reader) throws IOException {
String targetString = buffer.toString();
LOGGER.debug("Tokenizer Input: {}", targetString);
if (!targetString.isEmpty()) {
LOGGER.debug("Tokenizer Input: {}", targetString);
String segmentResult = IctclasNative.INSTANCE.NLPIR_Tokenizer4IR(targetString, fineSegment);
this.setTokenResults(TokenResult.parse(segmentResult));
LOGGER.debug("Tokenizer Output: {}", segmentResult);
Expand Down

0 comments on commit 2d823df

Please sign in to comment.