인터넷 환경에서 다운로드하는 법
docker exec -it elasticsearch bash
bin/elasticsearch-plugin install https://github.com/netcrazy/elasticsearch-jaso-analyzer/releases/download/v8.6.2/jaso-analyzer-plugin-8.6.2-plugin.zip
docker-compose restart elasticsearch
폐쇄망에서 다운로드하는 법
wget https://github.com/netcrazy/elasticsearch-jaso-analyzer/releases/download/v8.6.2/jaso-analyzer-plugin-8.6.2-plugin.zip -P /tmp
docker cp /tmp/jaso-analyzer-plugin-8.6.2-plugin.zip <컨테이너_ID>:/tmp/
도커 컨테이너 접속
도커 컨테이너에서 다운로드
bin/elasticsearch-plugin install file:///tmp/jaso-analyzer-plugin-8.6.2-plugin.zip
PUT /index
{
"settings": {
"index": {
"analysis": {
"filter": {
"suggest_filter": {
"type": "edge_ngram",
"min_gram": 1,
"max_gram": 50
}
},
"tokenizer": {
"jaso_search_tokenizer": {
"type": "jaso_tokenizer",
"mistype": true,
"chosung": false
},
"jaso_index_tokenizer": {
"type": "jaso_tokenizer",
"mistype": true,
"chosung": true
}
},
"analyzer": {
"suggest_search_analyzer": {
"type": "custom",
"tokenizer": "jaso_search_tokenizer"
},
"suggest_index_analyzer": {
"type": "custom",
"tokenizer": "jaso_index_tokenizer",
"filter": [
"suggest_filter"
]
}
}
}
}
},
"mappings": {
"properties": {
"name": {
"type": "text",
"analyzer": "suggest_index_analyzer",
"search_analyzer": "suggest_search_analyzer"
}
}
}
}
안녕하세요 자소분리 찾아보다가 궁금한 점 생겨서 여쭤봅니다!! 혹시 es 8.6.2로 맞춰서 쓰시는건가요 아니면 버전에 맞춰서 튜닝해서 쓰시는건가요?