You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sinking <si...@bonbon.net> on 2007/08/21 13:33:43 UTC

Embedded solr - reload searcher

Hello,
I have tried to use the EmbeddedSolr 
(http://wiki.apache.org/solr/EmbeddedSolr) because i want to work 
directly with the document.
When i index a document (using the embeddedsolr) and calls commit(), 
when searching with embeddedsolr it works perfectly (apparently reloads 
the searchers etc).
But afterwards when im using the admin tool, the new document isn't 
indexed. Only when i reload the searcher (by reloading tomcat).
So apparently the searchers isn't reloaded (only the embeddedsolr's 
searcher is reloaded).

Isn't it possible to index a document with embeddedsolr and then it also 
is visible with through the default interface? (without the need for 
reloading tomcat etc.)

Regards peter



Re: Embedded solr - reload searcher

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
For other Solr instances (whether embedded or not) to refresh their  
index searchers, send a <commit/> message to them.

	Erik


On Aug 21, 2007, at 7:33 AM, sinking wrote:
> Hello,
> I have tried to use the EmbeddedSolr (http://wiki.apache.org/solr/ 
> EmbeddedSolr) because i want to work directly with the document.
> When i index a document (using the embeddedsolr) and calls commit 
> (), when searching with embeddedsolr it works perfectly (apparently  
> reloads the searchers etc).
> But afterwards when im using the admin tool, the new document isn't  
> indexed. Only when i reload the searcher (by reloading tomcat).
> So apparently the searchers isn't reloaded (only the embeddedsolr's  
> searcher is reloaded).
>
> Isn't it possible to index a document with embeddedsolr and then it  
> also is visible with through the default interface? (without the  
> need for reloading tomcat etc.)
>
> Regards peter
>