Problem with fs_river: multi_field type mapping

Hi all,

*i declared an index as follows: *

curl -XPUT 'http://localhost:9200/mydocs/' -d '{
"settings" : {"index" : {"analysis" :
{"analyzer" : {
"synfromfile" : {"tokenizer" : "whitespace","filter" : ["synonym"]},
"autocomplete" : {"tokenizer" : "whitespace","filter" :
["lowercase","engram"]}},
"filter" : {"synonym" : {"type" : "synonym", "synonyms_path" :
"C:\TempElasticSearch\synonym\synonyms.txt"},
"engram" : {"type" : "edgeNGram","min_gram" : 3,"max_gram" : 10}}}}}}'

And a mapping as follows:

curl -XPUT 'http://localhost:9200/mydocs/doc/_mapping' -d '
{
"doc": {
"properties": {
"file": {
"type": "attachment",
"path": "full",
"fields": {
"file": {
"type": "string",
"store": "yes",
"term_vector": "with_positions_offsets",
"analyzer" : "synfromfile"
},
"author":{
"type":"multi_field",
"store": "yes",
"fields" : {
"author" : {
"type" : "string"
},
"authac" : {
"type" : "string",
"analyzer" : "autocomplete"
}
}
},
"title": {
"type": "string",
"store": "yes",
"analyzer" : "autocomplete"
},
"date": {
"type": "date",
"format": "dateOptionalTime",
"store": "yes"
},
"keywords": {
"type": "string",
"store": "yes",
"analyzer" : "autocomplete"
},
"content_type": {
"type": "string",
"store": "yes"
} } }} }}'

and I tested with this query:

curl -XGET 'localhost:9200/mydocs/doc/_search?pretty' -d '
{

"query" : {
"term" : { "file.author" : "yahia" }
},
"facets" : {
"content" : {
"terms" : {
"field" : "file.author.authac"
}
}
}
}'

and I got this result

{
"took" : 7,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 0.5945348,
"hits" : [ {
"_index" : "mydocs",
"_type" : "doc",
"_id" : "19943db2a847cbb66daf35446bab775",
"_score" : 0.5945348, "_source" :
{"name":"ElasticSearch.docx","postDate":1365145991688,"pathEncoded":"8580d27817ab2e7da7fd9c55a

54c81cc","rootpath":"8580d27817ab2e7da7fd9c55a54c81cc","virtualpath":"c","file":{"_name":"ElasticSearch.docx","content":"UEs
} ]
},
"facets" : {
"content" : {
"_type" : "terms",
"missing" : 1,
"total" : 0,
"other" : 0,
"terms" : [ ]
}
}
}

*the problem is that fs-river can not copy data in the field "*authac"
which exists in the author attribute !!!

*
*
*is that I made an error in the configuration of the mapping ??
*

Cordially
*
*
Yahia AMMAR

--
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.

I want to apply the autocomplete in the author field, and also keep the
auriginal value of this field, which is why I used the muti-type field ...

--
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.