ES ElasticSearch (3)

Featured image

ElasticSearch analysis-nori

analysis-nori 설치 🔧

C:\elasticsearch-7.9.2-windows-x86_64\elasticsearch-7.9.2\bin>elasticsearch-plugin install analysis-nori

//result
-> Installing analysis-nori
-> Downloading analysis-nori from elastic
[=================================================] 100%??
-> Installed analysis-nori

analysis-nori 확인하기

//URL - GET Method
http://127.0.0.1:9200/_analyze

//RequestBody
{
    "tokenizer": "nori_tokenizer",
    "text":  "모두들 화이팅"
}

//Response
{
    "tokens": [
        {
            "token": "모두",
            "start_offset": 0,
            "end_offset": 2,
            "type": "word",
            "position": 0
        },
        {
            "token": "들",
            "start_offset": 2,
            "end_offset": 3,
            "type": "word",
            "position": 1
        },
        {
            "token": "화이팅",
            "start_offset": 4,
            "end_offset": 7,
            "type": "word",
            "position": 2
        }
    ]
}