Created
October 18, 2011 17:28
-
-
Save kimchy/1296043 to your computer and use it in GitHub Desktop.
This file contains 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
curl -XPUT localhost:9200/test -d '{ | |
"mappings" : { | |
"type1" : { | |
"properties" : { | |
"name" : { | |
"type" : "multi_field", | |
"fields" : { | |
"name" : {"type" : "string", "index" : "analyzed"}, | |
"untouched" : {"type" : "string", "index" : "not_analyzed"} | |
} | |
} | |
} | |
} | |
} | |
}' | |
curl -XPUT localhost:9200/test/type1/1 -d '{ | |
"name" : "test me" | |
}' | |
curl -XPOST localhost:9200/test/_refresh | |
curl -XGET localhost:9200/test/_search?q=name.untouched:* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment