Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for opensearch version 2.9.0 #6

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Optionally, edit the `opensearch-analysis-vietnamese/pom.xml` to change the vers
...
<groupId>org.opensearch</groupId>
<artifactId>opensearch-analysis-vietnamese</artifactId>
<version>1.3.2</version>
<version>2.9.0</version>
...
```

Expand All @@ -104,13 +104,13 @@ mvn package
### Step 3: Installation the plugin on OpenSearch

```sh
bin/opensearch-plugin install file://target/releases/opensearch-analysis-vietnamese-1.3.2.zip
bin/opensearch-plugin install file://target/releases/opensearch-analysis-vietnamese-2.9.0.zip
```

## Compatible Versions
| Vietnamese Analysis Plugin | OpenSearch |
| -------------------------- |------------|
| master | 1.3.2 |
| master | 2.9.0 |

## Thanks to
- [JetBrains](https://www.jetbrains.com) has provided a free license for [IntelliJ IDEA](https://www.jetbrains.com/idea).
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.opensearch</groupId>
<artifactId>opensearch-analysis-vietnamese</artifactId>
<version>1.3.2</version>
<version>2.9.0</version>
<packaging>jar</packaging>
<name>opensearch-analysis-vietnamese</name>
<url>https://github.com/duydo/opensearch-analysis-vietnamese/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.opensearch.action.admin.cluster.node.info.PluginsAndModules;
import org.opensearch.action.admin.indices.analyze.AnalyzeAction;
import org.opensearch.action.search.SearchResponse;
import org.opensearch.common.xcontent.XContentBuilder;
import org.opensearch.core.xcontent.XContentBuilder;
import org.opensearch.index.query.QueryBuilders;
import org.opensearch.plugin.analysis.vi.AnalysisVietnamesePlugin;
import org.opensearch.plugins.Plugin;
Expand Down Expand Up @@ -71,7 +71,7 @@ public void testVietnameseAnalyzerInMapping() throws ExecutionException, Interru
.endObject()
.endObject()
.endObject();
client().admin().indices().preparePutMapping("test").setType("_doc").setSource(mapping).get();
client().admin().indices().preparePutMapping("test").setSource(mapping).get();
final XContentBuilder source = jsonBuilder()
.startObject()
.field("foo", "công nghệ thông tin Việt Nam")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.io.IOException;
import java.io.StringReader;

import static org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents;
import static org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.assertTokenStreamContents;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;

Expand Down
Loading