public class SolrIndexWriter extends IndexWriter
IndexWriter.IndexReaderWarmer
Modifier and Type | Field and Description |
---|---|
static String |
COMMIT_COMMAND_VERSION |
static String |
COMMIT_TIME_MSEC_KEY
Stored into each Lucene commit to record the
System.currentTimeMillis() when commit was called.
|
static AtomicLong |
numCloses |
static AtomicLong |
numOpens |
MAX_DOCS, MAX_POSITION, MAX_STORED_STRING_LENGTH, MAX_TERM_LENGTH, SOURCE, SOURCE_ADDINDEXES_READERS, SOURCE_FLUSH, SOURCE_MERGE, WRITE_LOCK_NAME
Constructor and Description |
---|
SolrIndexWriter(String name,
Directory d,
IndexWriterConfig conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static SolrIndexWriter |
create(SolrCore core,
String name,
String path,
DirectoryFactory directoryFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
IndexDeletionPolicy delPolicy,
Codec codec) |
protected void |
doAfterFlush() |
protected void |
finalize() |
void |
merge(MergePolicy.OneMerge merge) |
void |
rollback() |
static void |
setCommitData(IndexWriter iw,
long commitCommandVersion) |
addDocument, addDocuments, addIndexes, addIndexes, advanceSegmentInfosVersion, commit, decRefDeleter, deleteAll, deleteDocuments, deleteDocuments, deleteUnusedFiles, doBeforeFlush, ensureOpen, ensureOpen, flush, flushNextBuffer, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getConfig, getDirectory, getFieldNames, getFlushingBytes, getInfoStream, getLiveCommitData, getMaxCompletedSequenceNumber, getMergingSegments, getNextMerge, getTragicException, hasDeletions, hasPendingMerges, hasUncommittedChanges, incRefDeleter, isEnableTestPoints, isOpen, maxDoc, maybeMerge, numDeletedDocs, numDeletesToMerge, numDocs, numRamDocs, prepareCommit, ramBytesUsed, setLiveCommitData, setLiveCommitData, softUpdateDocument, softUpdateDocuments, tryDeleteDocument, tryUpdateDocValue, updateBinaryDocValue, updateDocument, updateDocuments, updateDocValues, updateNumericDocValue
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
public static final AtomicLong numOpens
public static final AtomicLong numCloses
public static final String COMMIT_TIME_MSEC_KEY
public static final String COMMIT_COMMAND_VERSION
public SolrIndexWriter(String name, Directory d, IndexWriterConfig conf) throws IOException
IOException
public static SolrIndexWriter create(SolrCore core, String name, String path, DirectoryFactory directoryFactory, boolean create, IndexSchema schema, SolrIndexConfig config, IndexDeletionPolicy delPolicy, Codec codec) throws IOException
IOException
public static void setCommitData(IndexWriter iw, long commitCommandVersion)
public void merge(MergePolicy.OneMerge merge) throws IOException
merge
in class IndexWriter
IOException
protected void doAfterFlush() throws IOException
doAfterFlush
in class IndexWriter
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class IndexWriter
IOException
public void rollback() throws IOException
rollback
in interface TwoPhaseCommit
rollback
in class IndexWriter
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.