Skip to content

Instantly share code, notes, and snippets.

@chrisberkhout
Created July 2, 2011 08:15
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 chrisberkhout/18284b28a2a7a4090942 to your computer and use it in GitHub Desktop.
Save chrisberkhout/18284b28a2a7a4090942 to your computer and use it in GitHub Desktop.
ES document mappings - searchable despite "index":"no"
{
"mappings": {
"document": {
"properties": {
"author_ids": {
"type": "string"
},
"published_on": {
"index": "no",
"type": "date",
"format": "dateOptionalTime"
},
"source_ids": {
"type": "string"
},
"accessed_on": {
"index": "no",
"type": "date",
"format": "dateOptionalTime"
},
"authority_rating": {
"index": "no",
"type": "long"
},
"significance_and_impact_en": {
"index": "no",
"type": "string"
},
"url": {
"index": "no",
"type": "string"
},
"tag_ids": {
"type": "string"
},
"created_at": {
"index": "no",
"type": "date",
"format": "dateOptionalTime"
},
"title_en": {
"index": "no",
"type": "string"
},
"updated_at": {
"index": "no",
"type": "date",
"format": "dateOptionalTime"
},
"title_pin": {
"index": "no",
"type": "string"
},
"originality_rating": {
"index": "no",
"type": "long"
},
"significance_and_impact_cn": {
"index": "no",
"type": "string"
},
"reference_value_rating": {
"index": "no",
"type": "long"
},
"overall_value_rating": {
"index": "no",
"type": "long"
},
"id": {
"type": "string"
},
"title_cn": {
"index": "no",
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment