I'd like to create a mapping on an index, specifying a particular field, 
"TCNAME", as a non-analyzed string.  This seems straightforward when you're 
mapping against a field at the root node, or even a field nested deeper 
within a document in cases where there is a predictable pattern of field 
names you can use to map down from the root node to the field targeted for 
mapping.  But the structure against which I'm mapping contains an array 
within an array, ultimately embedding a JSON object containing the field 
that I want to map.

Here's what it looks like, where TCNAME is the field that I want to map as 
a non-analyzed String:

{
  "PARENT": "dp::b8632421-a4e4-4709-9a73-6477eece6ca6",
  "TYPE": "TER",
  "testexecutionrecord": [
    [
      [
        {
          "TERID": "073f715d-fade-48b3-97c2-7d2a372204f2",
          "TCID": "2c171ef6-32c7-4d7c-b3dd-994a76f6e69c",
          "TCNAME": "Credit Card"
        }
      ],
      [
        {
          "Executed On": "01-06-2015",
          "Executor": "Stanislas",
          "Status": "Pass"
        }
      ]
    ],
    [],
    [],
    {
      "Defect Id": ""
    }
  ]
}

Any thoughts on how I can configure the TCNAME as a nested field in my 
Elasticsearch index?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/52a71338-d562-4efa-bda2-67bf8477d642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to