public Indexer(FullTextIndex parent) { _parent = parent; _analyzer = _parent.Analyzer; _bufferPool = _parent.BufferPool; AutoFlush = true; }
public FullTextIndex(StorageEnvironmentOptions options, IAnalyzer analyzer) { Analyzer = analyzer; Conventions = new IndexingConventions(); BufferPool = new BufferPool(); StorageEnvironment = new StorageEnvironment(options); using (var tx = StorageEnvironment.NewTransaction(TransactionFlags.ReadWrite)) { ReadMetadata(tx); ReadLastDocumentId(tx); ReadFields(tx); tx.Commit(); } }
public BufferPoolMemoryStream(BufferPool bufferPool) { _bufferPool = bufferPool; _buffer = _bufferPool.Take(8 * 1024); }