Skip to content

Instantly share code, notes, and snippets.

@kfrancoi
Last active August 29, 2015 14:19
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 kfrancoi/c63c900f110581d4335d to your computer and use it in GitHub Desktop.
Save kfrancoi/c63c900f110581d4335d to your computer and use it in GitHub Desktop.
OpenWatch ES Mapping
curl -XPUT 'http://localhost:9200/INDEXNAME/_mapping/TYPENAME' -d '
{
"TYPENAME":{
"properties":{
"annotations":{
"properties":{
"count":{
"type":"long"
},
"name":{
"type":"string",
"index":"not_analyzed"
},
"spans":{
"type":"long"
},
"tClass":{
"type":"string",
"index":"not_analyzed"
},
"uri":{
"type":"string",
"index":"not_analyzed"
}
}
},
"authors":{
"type":"string",
"index":"not_analyzed"
},
"docdate":{
"type":"date",
"format":"dateOptionalTime"
},
"image":{
"type":"string",
"index":"not_analyzed"
},
"locale":{
"type":"string",
"index":"not_analyzed"
},
"source":{
"type":"string",
"index":"not_analyzed"
},
"summary":{
"type":"string"
},
"tags":{
"type":"string",
"index":"not_analyzed"
},
"text":{
"type":"string"
},
"title":{
"type":"string"
},
"url":{
"type":"string",
"index":"not_analyzed"
}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment