mirror of https://github.com/apache/lucene.git
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:
parent
b30c3e6642
commit
87e52df974
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue