Created
March 13, 2013 13:33
-
-
Save luizgpsantos/5152081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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