Solr indexing all mongodb content

I currently have a custom solr running on my martini runtime and I want to index all the content on my mongodb database whenever there is a changes in the database. How do you usually go around with that?

1 reply