Completion type mapping

Hi mates,

I am trying to create mapping in my auto completion scenario.

As shown below, I am using "copy_to" command in order to copy a field value
into a completion type which name is "factContent_suggest".

The problem I have encountered is that I cannot update weight property by
using "factContent_suggest.weight".
When I delete this statement, all suggestions come with default weight 1.0.

Thanks for your cooperation.

http://localhost:9200/factindex/fact/_mapping

{
"fact" : {
"properties" : {
"factContent" : {"type" : "string","copy_to" :
"factContent_suggest"},
"ranking" : {"type" : "long","copy_to":
"factContent_suggest.weight"},
"factContent_suggest" : {"type" : "completion","payloads" : true
}

    }
}

}

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d7026e61-8366-4117-9b1c-bece1f490fa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.