SolR and Elasticsearch are quite similar. They both have the features you need.
It’s a very open question and my opinion will be that Elasticsearch will be a better pick, it has a bigger community and tend to grow faster.
The more custom you need your solution to be, the more likely you will benefit from Solr.
While both of them use Lucene under the covers, Solr exposes more of it directly. Elasticsearch is tuned more for logs and things and some text search configuration is harder to access.
Read more here: Source link