I'm having issues getting the "copy_to" functionality to work.  It seems 
pretty straight forward, so I wasn't expecting any problems.

Here is my index creation call:

curl -XPUT http://esnode:9200/test_index -d '{
  "settings" : {
    "number_of_shards" : 1,
    "number_of_replicas" : 1,
    "index.mapping.ignore_malformed" : true
  },
  "mappings" : {
    "default" : {
      "properties": {
        "name" : {
          "type" : "string",
          "copy_to" : "name_phonetic"
        },
        "name_phonetic" : {
          "type" : "string"
        }
      }
    }
  }
}'

curl -XPUT http://esnode:9200/test_index/default/1 -d '{
  "name" : "smith"
}'

When I query against test_index/default, I can see that "smith" is in the 
"name" field.  However the "name_phonetic" field is blank.  What am I 
missing?

Thank you!

--
Michael

-- 
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/0570abbe-f894-4822-b89a-3168f5f70687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to