rwynn / monstache

a go daemon that syncs MongoDB to Elasticsearch in realtime. you know, for search.
https://rwynn.github.io/monstache-site/
MIT License
1.29k stars 181 forks source link

I just need to synchronize a few fields in a table.. How? #396

Open linjin200 opened 4 years ago

linjin200 commented 4 years ago

I built the index manually

Can monstache synchronize only a few fields in it... It seems that the whole mongodb table is synchronized by the montache

PUT dy_user/ { "settings": { "number_of_shards": 5, "number_of_replicas": 1, "refresh_interval": "60s" }, "mappings": { "date_detection": false, "numeric_detection": true, "properties": { "account": { "type": "long" }, "birthday": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "child_domain": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "dyID": { "type": "text" } } } }

rwynn commented 4 years ago

Please see previous issue or docs.