public synchronized IndexSearcher getIndexSearcher() {if (indexReader != null) {indexReader.incRef();}return indexSearcher;}
public virtual IndexSearcher GetIndexSearcher(){lock (this){if (indexReader != null){indexReader.IncRef();}return indexSearcher;}}