Created
December 30, 2010 17:31
-
-
Save harryf/760026 to your computer and use it in GitHub Desktop.
An elasticsearch mapping for techup events
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
#!/bin/sh | |
echo "Deleting index" | |
curl -XDELETE 'http://localhost:9200/techup/' | |
echo "\nCreating index" | |
curl -XPUT 'http://localhost:9200/techup/' | |
echo "\nApplying mapping" | |
curl -XPUT 'http://localhost:9200/techup/events/_mapping' -d ' | |
{ | |
"events" : { | |
"properties" : { | |
"title" : { "type" : "string", "boost" : 2.0 }, | |
"summary" : { "type" : "string" }, | |
"updated" : { type: "date", "format" : "EEE, dd MMM yyyy HH:mm:ss Z" }, | |
"link" : { type: "string", "index" : "not_analyzed" } | |
} | |
} | |
}' | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment