6.5.2 UAX URL Email
이 문서의 허가되지 않은 무단 복제나 배포 및 출판을 금지합니다. 본 문서의 내용 및 도표 등을 인용하고자 하는 경우 출처를 명시하고 김종민([email protected])에게 사용 내용을 알려주시기 바랍니다.
GET _analyze
{
"tokenizer": "standard",
"text": "email address is [email protected] and website is https://www.elastic.co"
}{
"tokens" : [
{
"token" : "email",
"start_offset" : 0,
"end_offset" : 5,
"type" : "<ALPHANUM>",
"position" : 0
},
{
"token" : "address",
"start_offset" : 6,
"end_offset" : 13,
"type" : "<ALPHANUM>",
"position" : 1
},
{
"token" : "is",
"start_offset" : 14,
"end_offset" : 16,
"type" : "<ALPHANUM>",
"position" : 2
},
{
"token" : "my",
"start_offset" : 17,
"end_offset" : 19,
"type" : "<ALPHANUM>",
"position" : 3
},
{
"token" : "name",
"start_offset" : 20,
"end_offset" : 24,
"type" : "<ALPHANUM>",
"position" : 4
},
{
"token" : "email.com",
"start_offset" : 25,
"end_offset" : 34,
"type" : "<ALPHANUM>",
"position" : 5
},
{
"token" : "and",
"start_offset" : 35,
"end_offset" : 38,
"type" : "<ALPHANUM>",
"position" : 6
},
{
"token" : "website",
"start_offset" : 39,
"end_offset" : 46,
"type" : "<ALPHANUM>",
"position" : 7
},
{
"token" : "is",
"start_offset" : 47,
"end_offset" : 49,
"type" : "<ALPHANUM>",
"position" : 8
},
{
"token" : "https",
"start_offset" : 50,
"end_offset" : 55,
"type" : "<ALPHANUM>",
"position" : 9
},
{
"token" : "www.elastic.co",
"start_offset" : 58,
"end_offset" : 72,
"type" : "<ALPHANUM>",
"position" : 10
}
]
}GET _analyze
{
"tokenizer": "uax_url_email",
"text": "email address is [email protected] and website is https://www.elastic.co"
}{
"tokens" : [
{
"token" : "email",
"start_offset" : 0,
"end_offset" : 5,
"type" : "<ALPHANUM>",
"position" : 0
},
{
"token" : "address",
"start_offset" : 6,
"end_offset" : 13,
"type" : "<ALPHANUM>",
"position" : 1
},
{
"token" : "is",
"start_offset" : 14,
"end_offset" : 16,
"type" : "<ALPHANUM>",
"position" : 2
},
{
"token" : "[email protected]",
"start_offset" : 17,
"end_offset" : 34,
"type" : "<EMAIL>",
"position" : 3
},
{
"token" : "and",
"start_offset" : 35,
"end_offset" : 38,
"type" : "<ALPHANUM>",
"position" : 4
},
{
"token" : "website",
"start_offset" : 39,
"end_offset" : 46,
"type" : "<ALPHANUM>",
"position" : 5
},
{
"token" : "is",
"start_offset" : 47,
"end_offset" : 49,
"type" : "<ALPHANUM>",
"position" : 6
},
{
"token" : "https://www.elastic.co",
"start_offset" : 50,
"end_offset" : 72,
"type" : "<URL>",
"position" : 7
}
]
}Last updated