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(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); }