It looks like we have access to the read only searcher, but never call
it.  From SolrCore.java:
// gets a non-caching searcher
public SolrIndexSearcher newSearcher(String name) throws IOException {
  return newSearcher(name, false);
}

This call was only used by the update handler to do get a searcher to
do deletions... but we no longer do that (DUH2.openSearcher() is no
longer called).  So I think everything should be read-only.

-Yonik

so can remove the indexSearcher from DUH2?

I just tried it, and the tests still pass. It removes two protected functions:
openSearcher(); // never called
closeSearcher();  // called a lot


ryan

Reply via email to