internal FulltextIndexProvider(IndexProviderDescriptor descriptor, IndexDirectoryStructure.Factory directoryStructureFactory, FileSystemAbstraction fileSystem, Config config, TokenHolders tokenHolders, DirectoryFactory directoryFactory, OperationalMode operationalMode, JobScheduler scheduler, AuxiliaryTransactionStateManager auxiliaryTransactionStateManager, Log log) : base(descriptor, directoryStructureFactory) { this._fileSystem = fileSystem; this._config = config; this._tokenHolders = tokenHolders; this._operationalMode = operationalMode; this._auxiliaryTransactionStateManager = auxiliaryTransactionStateManager; this._log = log; _defaultAnalyzerName = config.Get(FulltextConfig.FulltextDefaultAnalyzer); _defaultEventuallyConsistentSetting = Convert.ToString(config.Get(FulltextConfig.EventuallyConsistent)); _indexUpdateSink = new IndexUpdateSink(scheduler, config.Get(FulltextConfig.EventuallyConsistentIndexUpdateQueueMaxLength)); _openOnlineAccessors = new ConcurrentDictionary <StoreIndexDescriptor, FulltextIndexAccessor>(); _indexStorageFactory = BuildIndexStorageFactory(fileSystem, directoryFactory); }
internal virtual FulltextIndexBuilder WithIndexUpdateSink(IndexUpdateSink indexUpdateSink) { this._indexUpdateSink = indexUpdateSink; return(this); }
public FulltextIndexAccessor(IndexUpdateSink indexUpdateSink, DatabaseFulltextIndex luceneIndex, FulltextIndexDescriptor descriptor, ThreadStart onClose) : base(luceneIndex, descriptor) { this._indexUpdateSink = indexUpdateSink; this._descriptor = descriptor; this._onClose = onClose; }
internal WritableFulltextIndex(IndexUpdateSink indexUpdateSink, LuceneFulltextIndex fulltextIndex) : base(fulltextIndex) { this._indexUpdateSink = indexUpdateSink; }