Skip to content

Instantly share code, notes, and snippets.

@ceocoder
Created August 23, 2011 17:42
Show Gist options
  • Select an option

  • Save ceocoder/1165963 to your computer and use it in GitHub Desktop.

Select an option

Save ceocoder/1165963 to your computer and use it in GitHub Desktop.
curl -XGET 'localhost:9200/allofit/_analyze?text=test@gmail.com&pretty=true'
{
"tokens" : [ {
"token" : "test",
"start_offset" : 0,
"end_offset" : 4,
"type" : "<ALPHANUM>",
"position" : 1
}, {
"token" : "gmail.com",
"start_offset" : 5,
"end_offset" : 14,
"type" : "<ALPHANUM>",
"position" : 2
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment