일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- License
- Java
- sort
- plugin
- Test
- Elasticsearch
- matplotlib
- MySQL
- aggregation
- zip 암호화
- Mac
- token filter test
- analyzer test
- docker
- flask
- Python
- high level client
- 900gle
- license delete
- TensorFlow
- aggs
- licence delete curl
- springboot
- zip 파일 암호화
- 차트
- Kafka
- ELASTIC
- query
- 파이썬
- API
Archives
- Today
- Total
개발잡부
[es] plugin 4 - custom analyzer 사용 본문
반응형
인덱스 생성
PUT test_doo
{
"settings": {
"analysis": {
"analyzer": {
"nori_analyzer": {
"tokenizer": "nori_tokenizer"
},
"jamo_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"stop",
"snowball",
"doo-jamo"
]
},
"chosung_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"stop",
"snowball",
"doo-chosung"
]
}
}
}
},
"mappings": {
"properties": {
"message": {
"type": "text",
"fields": {
"jamo": {
"type": "text",
"analyzer": "jamo_analyzer"
},
"chosung": {
"type": "text",
"analyzer": "chosung_analyzer"
},
"nori": {
"type": "text",
"analyzer": "nori_analyzer"
}
}
}
}
}
}
테스트 데이터 색인
PUT test_doo/_doc/1
{
"message" : "언제나 내게 오래된 뚜뚜같은 누이비똥이 있어요"
}
텀백터로 확인
GET test_doo/_termvectors/1?fields=message
반응형
'ElasticStack > Elasticsearch' 카테고리의 다른 글
[es] multi-match query (0) | 2021.12.20 |
---|---|
[es] function score Query (0) | 2021.12.20 |
[es] plugin 3 - custom analyzer (0) | 2021.12.12 |
[es] Analyzer 01 (0) | 2021.12.08 |
[es] plugin 1 (mvn 설치) (0) | 2021.11.10 |
Comments