/** Expert: sets the {@link DocConsumer} chain to be used to process documents. * * <p>Only takes effect when IndexWriter is first created. */ IndexWriterConfig setIndexingChain(IndexingChain indexingChain) { if (indexingChain == null) { throw new IllegalArgumentException("indexingChain must not be null"); } this.indexingChain = indexingChain; return this; }
@Override IndexingChain getIndexingChain() { return indexingChain; }
/** Expert: sets the {@link DocConsumer} chain to be used to process documents. * * <p>Only takes effect when IndexWriter is first created. */ IndexWriterConfig setIndexingChain(IndexingChain indexingChain) { this.indexingChain = indexingChain == null ? DocumentsWriterPerThread.defaultIndexingChain : indexingChain; return this; }
/** * Returns the indexing chain set on * {@link IndexWriterConfig#setIndexingChain(IndexingChain)}. */ IndexingChain getIndexingChain() { return indexingChain; }