Skip to content

Instantly share code, notes, and snippets.

@lumpidu
Created May 22, 2012 10:00
Show Gist options
  • Save lumpidu/2768030 to your computer and use it in GitHub Desktop.
Save lumpidu/2768030 to your computer and use it in GitHub Desktop.
Post Mapping to ES
{
"posts" : {
"post" : {
"properties" : {
"converted_text" : {
"type" : "string"
},
"converted_text_size" : {
"type" : "long"
},
"created_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"feed_author" : {
"type" : "string"
},
"feed_id" : {
"type" : "long"
},
"feed_location" : {
"type" : "string"
},
"feed_summary" : {
"type" : "string"
},
"feed_timestamp" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"id" : {
"type" : "long"
},
"language" : {
"type" : "string"
},
"title" : {
"type" : "string"
},
"updated_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"url" : {
"type" : "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment