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);
 }
예제 #2
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);
 }