-
Notifications
You must be signed in to change notification settings - Fork 212
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
Settings sample for filter stopwords #8
Comments
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. |
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. Thank you so much for your help. |
@buithehien1991 You don't need to define a custom Vietnamese analyzer, you can use vi_analyzer directly in mapping:
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:
|
Closed due to lack of feedback. |
I've just written settings but I'm not sure about that.
Could you correct me with I was wrong?
The text was updated successfully, but these errors were encountered: