SOLR-1088: newSearcher(String name, boolean readOnly) is broken

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@777082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-05-21 11:49:07 +00:00
parent b30c3e6642
commit 87e52df974
1 changed files with 1 additions and 2 deletions

View File

@ -327,8 +327,7 @@ public final class SolrCore implements SolrInfoMBean {
// gets a non-caching searcher // gets a non-caching searcher
public SolrIndexSearcher newSearcher(String name, boolean readOnly) throws IOException { public SolrIndexSearcher newSearcher(String name, boolean readOnly) throws IOException {
return new SolrIndexSearcher(this, schema, name, directoryFactory.open(getIndexDir()), false); return new SolrIndexSearcher(this, schema, name, directoryFactory.open(getIndexDir()), readOnly, false);
//return new SolrIndexSearcher(this, schema, "main", IndexReader.open(FSDirectory.getDirectory(getIndexDir()), readOnly), true, false);
} }
private void initDirectoryFactory() { private void initDirectoryFactory() {