Skip to content

Instantly share code, notes, and snippets.

@luizgpsantos
Created March 13, 2013 13:33
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 luizgpsantos/5152081 to your computer and use it in GitHub Desktop.
Save luizgpsantos/5152081 to your computer and use it in GitHub Desktop.
# Aqui estou postando o mapping para todos os tipo do índice twitter
$ curl -XPUT 'http://localhost:1980/twitter/_mapping' -d '
{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes"}
}
}
}
'
# Aqui estou postando o mapeamento só para o tipo *tweet*
$ curl -XPUT 'http://localhost:9200/twitter/*tweet*/_mapping' -d '
{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes"}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment