Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Use case :

  1. The index/indices will be built dynamically from a template, so that it will pick some custom settings (number of shards/replicas/ etc).
  2. Generate dynamically the types and their mappings, enabling for them all the timestamp & ttl fields. Also define the same parent type for all types, except the parent type itself (I know its name).

    {
       "template": "*",
    
       "settings": {
          ...................
       },
    
       "mappings": {
    
          "_default_": {
             "_parent": {
                "type": "ParentType"
             },
             "_timestamp": {
                "enabled": true,
                "store": true
             },
             "_ttl": {
                "enabled": true
             }
          }
    
       }
    }
    

How could I disable the _parent field for the ParentType type itself ?

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.