Skip to content

Instantly share code, notes, and snippets.

@GrantGochnauer
Created June 4, 2013 17:35
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 GrantGochnauer/5707877 to your computer and use it in GitHub Desktop.
Save GrantGochnauer/5707877 to your computer and use it in GitHub Desktop.
Sample ES Model for List question
{
"PostDescriptor": {
"properties": {
"altNames": {
"index": "not_analyzed",
"type": "string"
},
"channelId": {
"index": "not_analyzed",
"type": "string"
},
"id": {
"index": "not_analyzed",
"type": "string"
},
"logicalName": {
"index": "not_analyzed",
"type": "string"
},
"segments": {
"properties": {
"channelId": {
"index": "not_analyzed",
"type": "string"
},
"id": {
"index": "not_analyzed",
"type": "string"
},
"name": {
"fields": {
"name": {
"index": "not_analyzed",
"type": "string"
},
"queryable": {
"index": "analyzed",
"index_analyzer": "filename_index",
"search_analyzer": "filename_search",
"type": "string"
}
},
"type": "multi_field"
},
"objectType": {
"index": "not_analyzed",
"type": "string"
},
"parentId": {
"index": "not_analyzed",
"type": "string"
},
"path": {
"index": "not_analyzed",
"type": "string"
},
"relativePostsPath": {
"index": "not_analyzed",
"type": "string"
}
}
},
"tenantName": {
"index": "not_analyzed",
"type": "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment