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