However, the subsequent queries on the database would only be a basic select queries.Īll the advanced and complex queries should be performed on the Solr search engine. Now, with Solr, we perform all the queries on the Solr instance.ĭepending upon your data structure, you might need to query further on the database as well based on the results of Solr query. In the absence of Solr search engine, we queried data directly on the underlying database. So, every add, delete and update operations that you perform on the database must be passed over to the Solr as well. Now in order to make sure that the needed application data resides in the Solr core, we need to make sure that the database and Solr core stays in sync all the time. Only the data that should queried by your application’s search engine should be stored on the Solr core. Of course we will not duplicate the entire data from the database. The data resides in the persistent database as well as in the Solr core. The first thing that we need to consider when integrating with Solr is that our data is going to be duplicated. A Solr Based Architecture Data Duplication
0 Comments
Leave a Reply. |