public FullTextDirectory(bool analyzeContents)
 {
     this.analyzer = new CustomAnalyzer();
     this.luceneDirectory = new RAMDirectory();
     this.indexWriter = new IndexWriter(this.luceneDirectory, this.analyzer, IndexWriter.MaxFieldLength.UNLIMITED);
     this.indexReader = this.indexWriter.GetReader();
     this.customQueryParser = new CustomQueryParser();
     this.documentFactory = new DocumentFactory(this.indexWriter, analyzeContents);
 }
 public FullTextDirectory()
 {
     this.Analyzer          = new CustomAnalyzer();
     this.LuceneDirectory   = new RAMDirectory();
     this.IndexWriter       = new IndexWriter(this.LuceneDirectory, this.Analyzer, IndexWriter.MaxFieldLength.UNLIMITED);
     this.IndexReader       = this.IndexWriter.GetReader();
     this.CustomQueryParser = new CustomQueryParser();
     this.DocumentCreator   = new DocumentFactory(this.IndexWriter);
 }
Example #3
0
 public FullTextDirectory(bool analyzeContents)
 {
     this.analyzer          = new CustomAnalyzer();
     this.luceneDirectory   = new RAMDirectory();
     this.indexWriter       = new IndexWriter(this.luceneDirectory, this.analyzer, IndexWriter.MaxFieldLength.UNLIMITED);
     this.indexReader       = this.indexWriter.GetReader();
     this.customQueryParser = new CustomQueryParser();
     this.documentFactory   = new DocumentFactory(this.indexWriter, analyzeContents);
 }