Exemplo n.º 1
0
 public Indexer(FullTextIndex parent)
 {
     _parent = parent;
     _analyzer = _parent.Analyzer;
     _bufferPool = _parent.BufferPool;
     AutoFlush = true;
 }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
 public BufferPoolMemoryStream(BufferPool bufferPool)
 {
     _bufferPool = bufferPool;
     _buffer = _bufferPool.Take(8 * 1024);
 }