Skip to content

Instantly share code, notes, and snippets.

View emily-pesce's full-sized avatar

Emily emily-pesce

  • USA
  • 02:19 (UTC -07:00)
View GitHub Profile
@duydo
duydo / twitter_mapping.sh
Created October 17, 2013 09:52
Preserving Special Characters During Tokenization twitter message with elasticsearch
curl -XPUT 'http://localhost:9200/twitter' -d '{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 1
},
"analysis" : {
"filter" : {
"tweet_filter" : {
"type" : "word_delimiter",