Skip to content

Instantly share code, notes, and snippets.

@frague59
Created February 1, 2016 16:08
Show Gist options
  • Save frague59/81d3e1238ddf1aa8db38 to your computer and use it in GitHub Desktop.
Save frague59/81d3e1238ddf1aa8db38 to your computer and use it in GitHub Desktop.
PUT intranet_dev/_mapping/modelresult
{
"properties": {
"document_file": {
"fields": {
"content_length": {
"type": "integer",
"store": "yes"
},
"language": "french",
"title": {
"analyzer": "french",
"store": "yes"
},
"user_author": {
"analyzer": "ngram_analyzer",
"store": "yes"
},
"content": {
"index": true,
"term_vector": "with_positions_offsets",
"analyzer": "french",
"copy_to": "copy",
"type": "string",
"store": "yes"
},
"content_type": {
"analyzer": "ngram_analyzer",
"store": "yes"
}
},
"type": "attachment"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment