Skip to content

Instantly share code, notes, and snippets.

@kimchy
Created November 29, 2011 07:45
Show Gist options
  • Save kimchy/1403902 to your computer and use it in GitHub Desktop.
Save kimchy/1403902 to your computer and use it in GitHub Desktop.
index:
analysis:
analyzer:
string_lowercase:
tokenizer: keyword
filter: lowercase
curl -XPUT localhost:9200/test -d '{
"mappings" : {
"type1" : {
"properties" : {
"field1" : {
"type" : "string",
"analyzer" : "string_lowercase"
}
}
}
}
}'
@zhmz1326
Copy link

zhmz1326 commented Mar 1, 2017

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment