elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Define a dynamic not_analyzed field for a nested document

Open iamlaokui opened this issue 13 years ago • 1 comments

I have a document like below, the "tags" field is a nested document, and I want to make all child field for tags document to be index = not_analyzed. The problem is that field in tags will be dynamic. any tag could possible. So how I can define dynamic mapping for this.

{
 strong text'level': 'info',
 'tags': {
  'content': u'Nov  6 11:07:10 ja10 Keepalived_healthcheckers: Adding service [172.16.08.105:80] to VS [172.16.1.21:80]',
  'id': 1755360087,
  'kid': '2012121316',
  'mailto': 'yanping3,chunying,pengjie',
  'route': 15,
  'service': 'LVS',
  'subject': 'LVS_RS',
  'upgrade': 'no upgrade configuration for this alert'
 },
 'timestamp': 1383707282.500464
}

iamlaokui avatar Nov 12 '13 03:11 iamlaokui

@kerwin we have very active mailing list, where you can ask questions like this one. I am sure somebody there will be able to assist you with this problem. The github issues should be used for feature requests and bug reporting. Thank you for your understanding. Please, see http://www.elasticsearch.org/help for more information.

imotov avatar Nov 12 '13 03:11 imotov