Skip to content

Instantly share code, notes, and snippets.

@thor27
Created October 8, 2013 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thor27/6888070 to your computer and use it in GitHub Desktop.
Save thor27/6888070 to your computer and use it in GitHub Desktop.
curl -XPOST "http://localhost:9200/example/" -d '
{
"settings":{
"index":{
"analysis":{
"analyzer":{
"my_analyzer":{
"tokenizer" : "standard",
"filter" : ["standard", "lowercase", "my_metaphone"]
}
},
"filter":{
"my_metaphone" : {
"type" : "phonetic",
"encoder" : "metaphone",
"replace" : false
}
}
}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment