Hi everybody!
I want to add settings and mappings when I create new _river mongodb
following that:
curl -XPUT 'localhost:9200/_river/mongodb/_meta' -d '{
"type": "mongodb",
"mongodb": {
"servers": [
{"host": "Konoha", "port": 27018},
{"host": "Konoha", "port": 27027}
],
"db": "testmongo",
"collection": "person",
"options": {
"secondary_read_preference": true,
"drop_collection": true
},
"gridfs": false
},
"index": {
"name": "person",
"type": "person"
},
"settings": {
"analysis": {
"analyzer": {
"index_analyzer": {
"tokenizer": "standard",
"filter": ["standard", "my_delimiter", "lowercase",
"stop", "asciifolding", "porter_stem"]
},
"search_analyzer": {
"tokenizer": "standard",
"filter": ["standard", "lowercase", "stop",
"asciifolding", "porter_stem"]
}
},
"filter": {
"my_delimiter": {
"type": "word_delimiter",
"generate_word_parts": true,
"catenate_words": true,
"catenate_numbers": true,
"catenate_all": true,
"split_on_case_change": true,
"preserve_original": true,
"split_on_numerics": true,
"stem_english_possessive": true
}
}
}
}
}'
When I run: http://localhost:9200/person/_settings on my browser, results
are:
{"person":{"settings":{"index.number_of_shards":"5","index.number_of_replicas":"1","index.version.created":"900299"}}}
It seem my settings above was not applied
Can you help me the way to add settings or mapping when initiate mongodb river
Thank you for helping me
--
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.