My app uses Cosmos DB to store data. I have a requirement to support full-text search, which Cosmos does not provide out of the box. One of the recommendations was to use Elasticsearch, and I have been trying that out. The more I try it out, the more I feel like I am duplicating data. I literally push the same documents to Cosmos DB and Elasticsearch.
Am I heading down a bad path here? The way I see it, I should do one of these things:
- use only Cosmos DB, simulating full-text by tokenizing+stemming content myself
- use only Elasticsearch
- use Cosmos DB in conjunction with Azure Search, which feels to me like it's not doubling-up on database responsibilities
Does anyone have any thoughts on my direction here?