public class StandardIndexReaderFactory extends IndexReaderFactory
DirectoryReader.DirectoryReader.open(Directory),
DirectoryReader.open(IndexWriter, boolean)termInfosIndexDivisor| Constructor and Description |
|---|
StandardIndexReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.index.DirectoryReader |
newReader(org.apache.lucene.store.Directory indexDir,
SolrCore core)
Creates a new IndexReader instance using the given Directory.
|
org.apache.lucene.index.DirectoryReader |
newReader(org.apache.lucene.index.IndexWriter writer,
SolrCore core)
Creates a new IndexReader instance using the given IndexWriter.
|
getTermInfosIndexDivisor, initpublic org.apache.lucene.index.DirectoryReader newReader(org.apache.lucene.store.Directory indexDir,
SolrCore core)
throws IOException
IndexReaderFactorynewReader in class IndexReaderFactoryindexDir - indexDir index locationcore - SolrCore instance where this reader will be used. NOTE:
this SolrCore instance may not be fully configured yet, but basic things like
SolrCore.getCoreDescriptor(), SolrCore.getLatestSchema() and
SolrCore.getSolrConfig() are valid.IOException - If there is a low-level I/O error.public org.apache.lucene.index.DirectoryReader newReader(org.apache.lucene.index.IndexWriter writer,
SolrCore core)
throws IOException
IndexReaderFactory
This is used for opening the initial reader in NRT mode (nrtMode=true
in solrconfig.xml)
newReader in class IndexReaderFactorywriter - IndexWritercore - SolrCore instance where this reader will be used. NOTE:
this SolrCore instance may not be fully configured yet, but basic things like
SolrCore.getCoreDescriptor(), SolrCore.getLatestSchema() and
SolrCore.getSolrConfig() are valid.IOException - If there is a low-level I/O error.Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.