yes.  This works fine.

But make sure only one SolrServer is writing to the index at a time. Also note that if you use the EmbeddedSolrServer to index and another one to read, you will need to call <commit/> on the 'read only' server to refresh the index view (the work "commit" is a bit misleading)

ryan


On Feb 9, 2009, at 9:43 AM, Bapat, Mayur wrote:

Hi,

Has anybody tried the combination of EmbeddedSolrServer only for
indexing and CommonHttpSolrServer only for searching?
So in my architecture with the EmbeddedSolrServer I want to use the
advantage of direct API calls for indexing purpose and for searching I
would rely on HTTP requests.
I tried some basic stuff but found that since the Solr core is being
initialized twice, I am unable to find the documents indexed through the embedded server using the HTTP requests unless I restart the tomcat. Any
idea how it could be achieved?

Mayur Bapat
PTC-Pune India
Ext - 3523

Reply via email to