I was using Solr for indexing and searching. Now, my new data is being indexed on elasticsearch. How can I use Solr indexes from elasticsearch for combined searching?
Since Solr and elasticsearch both are built over Apache Lucene, there must be a way/plugin to consume Solr indexes form elasticsearch right?
My attempt:
I found a river for this, but rivers are deprecated in elasticsearch from 1.5.0.
You cannot do it directly (without data migration) as their internal structures/representations are not compatible. Their query languages are also not compatible.
But you might be able to use a Federated engine in front of them, such as Carrot2.
Although both search servers are using Lucene (and internally indexes are stored as Lucene indexes) they are many differences in how they use Lucene when handing documents (like documents versions, sharding strategies, dynamic mapping, etc...) that would make difficult to use the same index in place. If your data is stored in the SolR instance you might be able to extract them from SolR and push them in your ElasticSearch.
By the way the river gives you the same limitation: "only stored fields can be retrieved from Solr, therefore indexed in elasticsearch"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With