Comments (4)
final List<String> stopWords = Arrays.asList(
"bị", "bởi", "cả", "các", "cái", "cần", "càng", "chỉ", "chiếc", "cho", "chứ", "chưa", "chuyện",
"có", "có thể", "cứ", "của", "cùng", "cũng", "đã", "đang", "đây", "để", "đến nỗi", "đều", "điều",
"do", "đó", "được", "dưới", "gì", "khi", "không", "là", "lại", "lên", "lúc", "mà", "mỗi", "một cách",
"này", "nên", "nếu", "ngay", "nhiều", "như", "nhưng", "những", "nơi", "nữa", "phải", "qua", "ra",
"rằng", "rằng", "rất", "rất", "rồi", "sau", "sẽ", "so", "sự", "tại", "theo", "thì", "trên", "trước",
"từ", "từng", "và", "vẫn", "vào", "vậy", "vì", "việc", "với", "vừa"
);
So, how to use it? on setting of filter.
Thank you so much....
from elasticsearch-analysis-vietnamese.
Addition, I'm working on Rails project and use Chewy gem using elasticsearch as wrapper, So I think setting of it like as setting for elasticsearch.
You can see here: https://github.com/toptal/chewy
Thank you so much for your help.
from elasticsearch-analysis-vietnamese.
@buithehien1991 You don't need to define a custom Vietnamese analyzer, you can use vi_analyzer directly in mapping:
"properties: {
"text": { "type": "string", "analyzer": "vi_analyzer"}
}
In case you want to define a custom Vietnamese analyzer to apply other filters as you mentioned in the first question, you can use vi_tonkenizer:
"analysis": {
"analyzer": {
"custom_vi": {
"tokenizer": "vi_tokenizer",
"filter": ["lowercase", "stop",...]
}
}
}
from elasticsearch-analysis-vietnamese.
Closed due to lack of feedback.
from elasticsearch-analysis-vietnamese.
Related Issues (20)
- Logical operators are tokenized as lower case words HOT 1
- Error testVietnameseTokenizer(org.elasticsearch.index.analysis.VietnameseAnalysisTests) HOT 2
- Bị lỗi khi cài đặt trên MacOS HOT 2
- Support for ES 8.3? HOT 8
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project elasticsearch-analysis-vietnamese: Fatal error compiling: invalid target release: 11 -> [Help 1] HOT 4
- support for elasticsearch version 8.6.1? HOT 2
- Lỗi Could not find plugin class [org.elasticsearch.plugin.analysis.vi.AnalysisVietnamesePlugin] HOT 8
- BUILD FAILURE VietnameseAnalyzerProvider.java:[33,9] HOT 6
- Fuzzy search và elasticsearch-analysis-vietnamese HOT 4
- 8.7.0 error HOT 3
- _analyze not working with vietnamese HOT 2
- 8.7.0 error HOT 2
- Error when test tokenizer HOT 6
- Cannot start elasticsearch when install plugin
- Hỗ trợ 8.12? HOT 1
- build plugin 8.11.3 lỗi ạ HOT 1
- Hỏi về cài đặt thư viện HOT 1
- tokenizer not found HOT 3
- Setting index
- how to use HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-analysis-vietnamese.