Uses of Class
org.apache.lucene.index.IndexWriterConfig
-
Packages that use IndexWriterConfig Package Description org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest.analyzing Analyzer based autosuggest. -
-
Uses of IndexWriterConfig in org.apache.lucene.index
Fields in org.apache.lucene.index declared as IndexWriterConfig Modifier and Type Field Description private IndexWriterConfigPKIndexSplitter. config1private IndexWriterConfigPKIndexSplitter. config2private IndexWriterConfigIndexUpgrader. iwcMethods in org.apache.lucene.index that return IndexWriterConfig Modifier and Type Method Description private static IndexWriterConfigPKIndexSplitter. newDefaultConfig()IndexWriterConfigIndexWriterConfig. setCheckPendingFlushUpdate(boolean checkPendingFlushOnUpdate)IndexWriterConfigIndexWriterConfig. setCodec(Codec codec)Set theCodec.IndexWriterConfigIndexWriterConfig. setCommitOnClose(boolean commitOnClose)Sets if callsIndexWriter.close()should first commit before closing.(package private) IndexWriterConfigIndexWriterConfig. setFlushPolicy(FlushPolicy flushPolicy)Expert: Controls when segments are flushed to disk during indexing.IndexWriterConfigIndexWriterConfig. setIndexCommit(IndexCommit commit)Expert: allows to open a certain commit point.IndexWriterConfigIndexWriterConfig. setIndexCreatedVersionMajor(int indexCreatedVersionMajor)Expert: set the compatibility version to use for this index.IndexWriterConfigIndexWriterConfig. setIndexDeletionPolicy(IndexDeletionPolicy delPolicy)Expert: allows an optionalIndexDeletionPolicyimplementation to be specified.IndexWriterConfigIndexWriterConfig. setIndexSort(Sort sort)Set theSortorder to use for all (flushed and merged) segments.(package private) IndexWriterConfigIndexWriterConfig. setIndexWriter(IndexWriter writer)Sets theIndexWriterthis config is attached to.IndexWriterConfigIndexWriterConfig. setInfoStream(java.io.PrintStream printStream)Convenience method that usesPrintStreamInfoStream.IndexWriterConfigIndexWriterConfig. setInfoStream(InfoStream infoStream)Information about merges, deletes and a message when maxFieldLength is reached will be printed to this.IndexWriterConfigIndexWriterConfig. setMaxBufferedDocs(int maxBufferedDocs)IndexWriterConfigIndexWriterConfig. setMaxFullFlushMergeWaitMillis(long maxFullFlushMergeWaitMillis)Expert: sets the amount of time to wait for merges (duringIndexWriter.commit()orIndexWriter.getReader(boolean, boolean)) returned by MergePolicy.findFullFlushMerges(...).IndexWriterConfigIndexWriterConfig. setMergedSegmentWarmer(IndexWriter.IndexReaderWarmer mergeSegmentWarmer)IndexWriterConfigIndexWriterConfig. setMergePolicy(MergePolicy mergePolicy)IndexWriterConfigIndexWriterConfig. setMergeScheduler(MergeScheduler mergeScheduler)Expert: sets the merge scheduler used by this writer.IndexWriterConfigIndexWriterConfig. setOpenMode(IndexWriterConfig.OpenMode openMode)SpecifiesIndexWriterConfig.OpenModeof the index.IndexWriterConfigIndexWriterConfig. setRAMBufferSizeMB(double ramBufferSizeMB)IndexWriterConfigIndexWriterConfig. setRAMPerThreadHardLimitMB(int perThreadHardLimitMB)Expert: Sets the maximum memory consumption per thread triggering a forced flush if exceeded.IndexWriterConfigIndexWriterConfig. setReaderPooling(boolean readerPooling)By default, IndexWriter does not pool the SegmentReaders it must open for deletions and merging, unless a near-real-time reader has been obtained by callingDirectoryReader.open(IndexWriter).IndexWriterConfigIndexWriterConfig. setSimilarity(Similarity similarity)Expert: set theSimilarityimplementation used by this IndexWriter.IndexWriterConfigIndexWriterConfig. setSoftDeletesField(java.lang.String softDeletesField)Sets the soft deletes field.IndexWriterConfigIndexWriterConfig. setUseCompoundFile(boolean useCompoundFile)Methods in org.apache.lucene.index with parameters of type IndexWriterConfig Modifier and Type Method Description private voidPKIndexSplitter. createIndex(IndexWriterConfig config, Directory target, DirectoryReader reader, Query preserveFilter, boolean negateFilter)Constructors in org.apache.lucene.index with parameters of type IndexWriterConfig Constructor Description IndexUpgrader(Directory dir, IndexWriterConfig iwc, boolean deletePriorCommits)Creates index upgrader on the given directory, using anIndexWriterusing the given config.IndexWriter(Directory d, IndexWriterConfig conf)Constructs a new IndexWriter per the settings given inconf.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm, IndexWriterConfig config1, IndexWriterConfig config2)PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Query docsInFirstIndex, IndexWriterConfig config1, IndexWriterConfig config2) -
Uses of IndexWriterConfig in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor that return IndexWriterConfig Modifier and Type Method Description private static IndexWriterConfigMonitorConfiguration. defaultIndexWriterConfig()protected IndexWriterConfigMonitorConfiguration. getIndexWriterConfig() -
Uses of IndexWriterConfig in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell with parameters of type IndexWriterConfig Modifier and Type Method Description voidSpellChecker. indexDictionary(Dictionary dict, IndexWriterConfig config, boolean fullMerge)Indexes the data from the givenDictionary. -
Uses of IndexWriterConfig in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing that return IndexWriterConfig Modifier and Type Method Description protected IndexWriterConfigAnalyzingInfixSuggester. getIndexWriterConfig(Analyzer indexAnalyzer, IndexWriterConfig.OpenMode openMode)Override this to customize index settings, e.g.
-