public class SolrIndexWriter
extends org.apache.lucene.index.IndexWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCK_TYPE_NATIVE |
static String |
LOCK_TYPE_NONE |
static String |
LOCK_TYPE_SIMPLE |
static String |
LOCK_TYPE_SINGLE |
| Constructor and Description |
|---|
SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
org.apache.lucene.index.IndexDeletionPolicy delPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
static org.apache.lucene.store.Directory |
getDirectory(String path,
DirectoryFactory directoryFactory,
SolrIndexConfig config) |
void |
rollback() |
addDocument, addDocument, addDocuments, addDocuments, addIndexes, addIndexes, addIndexesNoOptimize, close, commit, commit, deleteAll, deleteDocuments, deleteDocuments, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, expungeDeletes, expungeDeletes, flush, flush, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getConfig, getDefaultInfoStream, getDefaultWriteLockTimeout, getDirectory, getInfoStream, getMaxBufferedDeleteTerms, getMaxBufferedDocs, getMaxFieldLength, getMaxMergeDocs, getMergedSegmentWarmer, getMergeFactor, getMergePolicy, getMergeScheduler, getMergingSegments, getNextMerge, getPayloadProcessorProvider, getRAMBufferSizeMB, getReader, getReader, getReaderTermsIndexDivisor, getSimilarity, getTermIndexInterval, getUseCompoundFile, getWriteLockTimeout, hasDeletions, isLocked, maxDoc, maybeMerge, merge, message, numDeletedDocs, numDocs, numRamDocs, optimize, optimize, optimize, prepareCommit, prepareCommit, ramSizeInBytes, segString, segString, segString, setDefaultInfoStream, setDefaultWriteLockTimeout, setInfoStream, setMaxBufferedDeleteTerms, setMaxBufferedDocs, setMaxFieldLength, setMaxMergeDocs, setMergedSegmentWarmer, setMergeFactor, setMergePolicy, setMergeScheduler, setPayloadProcessorProvider, setRAMBufferSizeMB, setReaderTermsIndexDivisor, setSimilarity, setTermIndexInterval, setUseCompoundFile, setWriteLockTimeout, unlock, updateDocument, updateDocument, updateDocuments, updateDocuments, verbose, waitForMergespublic static final String LOCK_TYPE_SIMPLE
public static final String LOCK_TYPE_NATIVE
public static final String LOCK_TYPE_SINGLE
public static final String LOCK_TYPE_NONE
public SolrIndexWriter(String name, String path, DirectoryFactory dirFactory, boolean create, IndexSchema schema, SolrIndexConfig config, org.apache.lucene.index.IndexDeletionPolicy delPolicy) throws IOException
IOExceptionpublic static org.apache.lucene.store.Directory getDirectory(String path, DirectoryFactory directoryFactory, SolrIndexConfig config) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in class org.apache.lucene.index.IndexWriterIOExceptionpublic void rollback()
throws IOException
rollback in interface org.apache.lucene.util.TwoPhaseCommitrollback in class org.apache.lucene.index.IndexWriterIOException