Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Đây là cách phân token của elastic cho tiếng nhật
- ````
- POST _analyze
- {
- "analyzer": "kuromoji",
- "text": "第23回冬季オリンピック大会は大韓民国江原道平昌で2018年2月9日から25日までの17日間、開催されます。大韓民国・平昌は三度の挑戦の末、2011年7月7日に開かれた第123回IOC総会で過半数票を獲得し、2018年冬季オリンピック及びパラリンピックの開催地に選ばれました。これにより1988年ソウルオリンピック開催後30年の時を経てついに、大韓民国で最初の冬季パラリンピックの舞台が繰り広げられます。平昌で開・閉会式とほぼ全ての雪上競技が開催され、江陵では氷上種目全競技が、そして旌善ではアルペンスキー滑降競技が開催される予定です。"
- }
- =>
- {
- "tokens": [
- {
- "token": "第",
- "start_offset": 0,
- "end_offset": 1,
- "type": "word",
- "position": 0
- },
- {
- "token": "23",
- "start_offset": 1,
- "end_offset": 3,
- "type": "word",
- "position": 1
- },
- {
- "token": "回",
- "start_offset": 3,
- "end_offset": 4,
- "type": "word",
- "position": 2
- },
- {
- "token": "冬季",
- "start_offset": 4,
- "end_offset": 6,
- "type": "word",
- "position": 3
- },
- {
- "token": "オリンピック",
- "start_offset": 6,
- "end_offset": 12,
- "type": "word",
- "position": 4
- },
- {
- "token": "大会",
- "start_offset": 12,
- "end_offset": 14,
- "type": "word",
- "position": 5
- },
- ...
- ````
- - nếu như họ muốn matching từ theo kiểu search like thì hầu như ko tận dụng được gì nhiều của elasticsearch cả a/c ạ (bow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement