Good question. Well, I never worked productively with SolrJ. But two things: The first: As the documentation says, you *should* get your IndexSearcher from your SolrQueryRequest-object. The second: As a developer of the SolrJ I would do as much as I can automatically behind the curtain. That means that if you do a commit, the index searcher should be automatically renewed. But that's a guess. I can't answer you this question, sorry.
Maybe this link helps? http://lucene.472066.n3.nabble.com/Solr-commit-issue-td770315.html#a770453 (searched with the following keywords: solrj commit searcher) I am new to Java and the concept of Java Enterprise Edition's Servlets is not yet fully clear to me. Please, let me ask a question. Let me give you an example: If I use inside my application (it's a Servlet) a SolrServer, I should create him when I start the Servlet. Should I cache the instantiated SolrServer-object with the help of the servlet's cache? And should my cache-implementation should provide a getSolrServer()-method? Maybe this is a question more related to the JavaEE-concept. Thank you. Kind regards - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/IndexSearcher-and-Caches-tp833567p840479.html Sent from the Solr - User mailing list archive at Nabble.com.