Skip to content

Instantly share code, notes, and snippets.

@monken
Forked from clintongormley/gist:949602
Created May 31, 2011 09:41
Show Gist options
  • Save monken/1000240 to your computer and use it in GitHub Desktop.
Save monken/1000240 to your computer and use it in GitHub Desktop.
camelcase tokenizer
curl -XDELETE localhost:9200/test
curl -XPUT 'localhost:9200/test?pretty=1' -d '
{
"settings":{
"analysis": {
"analyzer": {
"camelcase":{
"type": "custom",
"tokenizer":"standard",
"filter":["camelcase", "lowercase"]
}
},
"filter": {"camelcase":{"type":"word_delimiter","preserve_original":true,"catenate_all":true}}
}
}
}'
curl 'localhost:9200/test/_analyze?pretty=1&analyzer=camelcase' -d 'MooseX::FTPClass foo_bar123Baz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment