Mapping object


(mr_max) #1

How can I mapping this object

    perms: {
LEAD: [["U1215"], ["D3239"]],
 CONTACT: [[]],
 COMPANY: [[]],
 DEAL: [[]], 
INVOICE: [[]],
 QUOTE: [[]]}

my put request:

 {
          "properties": {
             "perms": {
                "type": "multi_field",
                "fields": {
                    "perms": {"type": "string"},
                    "original": {"type" : "string", "index" : "not_analyzed"}
                }
             }
          }
       }

(system) #2