mosuka / blast

Blast is a full text search and indexing server, written in Go, built on top of Bleve.
Apache License 2.0
1.08k stars 76 forks source link

re-index / update an individual document #120

Closed sugarme closed 4 years ago

sugarme commented 4 years ago

Sorry if this had been addressed but I could not find anywhere. It is not an issue but rather a feature. Saying I have a collection of documents in MongoDB and indexed using blast. Now I update an individual document in MongoDB database, how I can reindex this document with blast?

Is there anyway that I can retrieve indexed Id of this document so that I can delete and recreate new index? Or Are there any better solution?

mosuka commented 4 years ago

Hi @sugarme , To update the index, please send the same content to Blast as the update to MongoDB.

sugarme commented 4 years ago

Works perfectly. Thanks.