Last active
August 29, 2015 14:09
-
-
Save marklin-latte/f2a52cced96eeb25c85d to your computer and use it in GitHub Desktop.
ElasticSearch-Analyze index text result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Uri | |
http://localhost:9200/test1/_analyze?text='世界如此之大' | |
//Display Result | |
{ | |
"tokens": [ | |
{ | |
"token": "世界", | |
"start_offset": 1, | |
"end_offset": 3, | |
"type": "word", | |
"position": 2 | |
}, | |
{ | |
"token": "如此", | |
"start_offset": 3, | |
"end_offset": 5, | |
"type": "word", | |
"position": 3 | |
}, | |
{ | |
"token": "之", | |
"start_offset": 5, | |
"end_offset": 6, | |
"type": "word", | |
"position": 4 | |
}, | |
{ | |
"token": "大", | |
"start_offset": 6, | |
"end_offset": 7, | |
"type": "word", | |
"position": 5 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment