org.apache.solr.update
Class SolrIndexWriter
java.lang.Object
org.apache.lucene.index.IndexWriter
org.apache.solr.update.SolrIndexWriter
public class SolrIndexWriter
- extends IndexWriter
An IndexWriter that is configured via Solr config mechanisms.
- Since:
- solr 0.9
- Version:
- $Id: SolrIndexWriter.java 949897 2010-05-31 23:43:26Z hossman $
Fields inherited from class org.apache.lucene.index.IndexWriter |
DEFAULT_MAX_BUFFERED_DELETE_TERMS, DEFAULT_MAX_BUFFERED_DOCS, DEFAULT_MAX_FIELD_LENGTH, DEFAULT_MAX_MERGE_DOCS, DEFAULT_MAX_SYNC_PAUSE_SECONDS, DEFAULT_MERGE_FACTOR, DEFAULT_RAM_BUFFER_SIZE_MB, DEFAULT_TERM_INDEX_INTERVAL, DISABLE_AUTO_FLUSH, MAX_TERM_LENGTH, WRITE_LOCK_NAME, WRITE_LOCK_TIMEOUT |
Constructor Summary |
SolrIndexWriter(String name,
String path,
boolean create,
IndexSchema schema)
Deprecated. |
SolrIndexWriter(String name,
String path,
boolean create,
IndexSchema schema,
SolrIndexConfig config)
Deprecated. |
SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema)
|
SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config)
Deprecated. |
SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
IndexDeletionPolicy delPolicy)
|
Methods inherited from class org.apache.lucene.index.IndexWriter |
abort, addDocument, addDocument, addIndexes, addIndexes, addIndexesNoOptimize, close, commit, commit, deleteAll, deleteDocuments, deleteDocuments, deleteDocuments, deleteDocuments, doAfterFlush, doBeforeFlush, docCount, ensureOpen, ensureOpen, expungeDeletes, expungeDeletes, flush, flush, getAnalyzer, getDefaultInfoStream, getDefaultWriteLockTimeout, getDirectory, getInfoStream, getMaxBufferedDeleteTerms, getMaxBufferedDocs, getMaxFieldLength, getMaxMergeDocs, getMaxSyncPauseSeconds, getMergedSegmentWarmer, getMergeFactor, getMergePolicy, getMergeScheduler, getRAMBufferSizeMB, getReader, getReader, getReaderTermsIndexDivisor, getSimilarity, getTermIndexInterval, getUseCompoundFile, getWriteLockTimeout, hasDeletions, isLocked, isLocked, maxDoc, maybeMerge, message, numDeletedDocs, numDocs, numRamDocs, optimize, optimize, optimize, optimize, prepareCommit, prepareCommit, ramSizeInBytes, segString, setAllowMinus1Position, setDefaultInfoStream, setDefaultWriteLockTimeout, setInfoStream, setMaxBufferedDeleteTerms, setMaxBufferedDocs, setMaxFieldLength, setMaxMergeDocs, setMaxSyncPauseSeconds, setMergedSegmentWarmer, setMergeFactor, setMergePolicy, setMergeScheduler, setRAMBufferSizeMB, setReaderTermsIndexDivisor, setSimilarity, setTermIndexInterval, setUseCompoundFile, setWriteLockTimeout, unlock, updateDocument, updateDocument, verbose, waitForMerges |
SolrIndexWriter
public SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema)
throws IOException
- Throws:
IOException
SolrIndexWriter
@Deprecated
public SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config)
throws IOException
- Deprecated.
- Throws:
IOException
SolrIndexWriter
public SolrIndexWriter(String name,
String path,
boolean create,
IndexSchema schema)
throws IOException
- Deprecated.
- Throws:
IOException
SolrIndexWriter
public SolrIndexWriter(String name,
String path,
boolean create,
IndexSchema schema,
SolrIndexConfig config)
throws IOException
- Deprecated.
- Throws:
IOException
SolrIndexWriter
public SolrIndexWriter(String name,
String path,
DirectoryFactory dirFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
IndexDeletionPolicy delPolicy)
throws IOException
- Throws:
IOException
getDirectory
public static Directory getDirectory(String path,
DirectoryFactory directoryFactory,
SolrIndexConfig config)
throws IOException
- Throws:
IOException
getDirectory
public static Directory getDirectory(String path,
SolrIndexConfig config)
throws IOException
- Deprecated. use getDirectory(String path, DirectoryFactory directoryFactory, SolrIndexConfig config)
- Throws:
IOException
close
public void close()
throws IOException
- Overrides:
close
in class IndexWriter
- Throws:
IOException
rollback
public void rollback()
throws IOException
- Overrides:
rollback
in class IndexWriter
- Throws:
IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2010 Apache Software Foundation. All Rights Reserved.