Shawn, my experience with SolrJ in that configuration (no autoCommit) is that you have control over commits: if you don't issue an explicit commit, it won't happen. Re lifecycle: we don't use a static instance; rather our app maintains a small pool of CommonsHttpSolrServer instances that we re-use across requests. I think that will be preferable since I don't think the underlying HttpClient is thread safe?
Hmm, I just checked and actually CommonsHttpSolrServer uses MultiThreadedHttpConnectionManager so it should be thread-safe, and OK to use a static instance as per documentation. Sorry for the misinformation.

-Mike

Reply via email to