Example #1
0
        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);
        }
Example #2
0
 internal virtual FulltextIndexBuilder WithIndexUpdateSink(IndexUpdateSink indexUpdateSink)
 {
     this._indexUpdateSink = indexUpdateSink;
     return(this);
 }
Example #3
0
 public FulltextIndexAccessor(IndexUpdateSink indexUpdateSink, DatabaseFulltextIndex luceneIndex, FulltextIndexDescriptor descriptor, ThreadStart onClose) : base(luceneIndex, descriptor)
 {
     this._indexUpdateSink = indexUpdateSink;
     this._descriptor      = descriptor;
     this._onClose         = onClose;
 }
Example #4
0
 internal WritableFulltextIndex(IndexUpdateSink indexUpdateSink, LuceneFulltextIndex fulltextIndex) : base(fulltextIndex)
 {
     this._indexUpdateSink = indexUpdateSink;
 }