How to use Solr indexes from Elasticsearch

I used Solr for indexing and searching. Now my new data is indexed on elasticsearch . How can I use Solr indexes from elasticsearch for a combined search?

Since Solr and elasticsearch are built on top of Apache Lucene , there must be a way / plugin to consume the Solr indexes of elasticsearch form correctly?

My attempt:

I found a river for this, but the rivers are deprecated in elasticsearch from 1.5.0.

+7
search indexing elasticsearch lucene solr
source share
2 answers

You cannot do this directly (without data transfer), as their internal structures / views are incompatible. Their query languages ​​are also incompatible.

But you can use a Federated engine like Carrot2 in front of it.

+5
source share

Although both search engines use Lucene (and internal indexes are stored as Lucene indexes), they have a lot of differences in how they use Lucene when submitting documents (such as document versions, outline strategies, dynamic matching, etc.) that make difficult to use the same index. If your data is stored in a SolR instance, you can extract it from SolR and paste it into your ElasticSearch.

By the way, the river gives you the same restriction: "only saved fields can be obtained from Solr, therefore they are indexed in elasticsearch"

+2
source share

All Articles