Skip to content

Instantly share code, notes, and snippets.

@marklin-latte
Last active August 29, 2015 14:09
Show Gist options
  • Save marklin-latte/f2a52cced96eeb25c85d to your computer and use it in GitHub Desktop.
Save marklin-latte/f2a52cced96eeb25c85d to your computer and use it in GitHub Desktop.
ElasticSearch-Analyze index text result
//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