Hi,
I'm trying to index a document on multi_field mapping :
here is my mapping :
curl -XPUT http://localhost:9200/test/test/_mapping -d '
{
"test": {
"properties": {
"field": {
"type": "multi_field",
"fields": {
"fr_FR": {
"type": "string"
},
"es_ES": {
"type": "string"
}
}
}
}
}
}
'
and then, when i add a document using :
curl -XPUT http://localhost:9200/test/test/1 -d '
{
"field": {
"fr_FR": "phrase en francais",
"es_ES": "palabra en espanol"
}
}
'
I'm getting this error in elasticsearch logs :
[2013-02-01 14:19:38,998][DEBUG][action.index ] [Ani-Mator]
[test][2], node[s--AZ_0PRxOpVlzdG8TIlQ], [P], s[STARTED]: Failed to execute
[index {[test][test][1], source[{"field":{"fr_FR":"phrase en
francais","es_ES":"palabra en espanol"}}]}]
org.elasticsearch.index.mapper.MapperParsingException: Failed to parse
[field.es_ES]
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:320)
at
org.elasticsearch.index.mapper.multifield.MultiFieldMapper.parse(MultiFieldMapper.java:211)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:507)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:449)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:486)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:430)
at
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:318)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:203)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:531)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:429)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: unknown
property [fr_FR]
at
org.elasticsearch.index.mapper.core.StringFieldMapper.parseCreateField(StringFieldMapper.java:276)
at
org.elasticsearch.index.mapper.core.StringFieldMapper.parseCreateField(StringFieldMapper.java:46)
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:307)
... 12 more
What is wrong ?
--
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.
For more options, visit https://groups.google.com/groups/opt_out.