C# Class Core.Lucene.SourceStorage

Show file Open project: brunomlopes/ILoveLucene Class Usage Examples

Public Methods

Method Description
AppendItems ( IItemSource source ) : void
DeleteDocumentForObject ( IndexWriter writer, IndexReader indexReader, IItemSource source, object item ) : void
IndexItems ( IItemSource source, IEnumerable items ) : void
LearnCommandForInput ( DocumentId completionId, string input ) : void
RemoveItems ( IItemSource source ) : void
RemoveItemsById ( IItemSource source ) : void
SourceStorage ( Lucene.Net.Store.Directory indexDirectory, ILearningRepository learningRepository, IConverterRepository converterRepository ) : System

Private Methods

Method Description
DeleteDocumentsForSourceWithoutTag ( IndexWriter indexWriter, IItemSource source, string tag ) : void
EnsureIndexExists ( ) : void
GetIndexWriter ( ) : IndexWriter
LearnCommandForInput ( IndexWriter writer, IndexReader reader, DocumentId completionId, string input ) : void
PopDocument ( IndexWriter writer, IndexReader reader, string sha1 ) : Lucene.Net.Documents.Document
UpdateDocumentForObject ( IndexWriter writer, IndexReader reader, IItemSource source, string tag, object item ) : void

Method Details

AppendItems() public method

public AppendItems ( IItemSource source ) : void
source IItemSource
return void

DeleteDocumentForObject() public method

public DeleteDocumentForObject ( IndexWriter writer, IndexReader indexReader, IItemSource source, object item ) : void
writer Lucene.Net.Index.IndexWriter
indexReader Lucene.Net.Index.IndexReader
source IItemSource
item object
return void

IndexItems() public method

public IndexItems ( IItemSource source, IEnumerable items ) : void
source IItemSource
items IEnumerable
return void

LearnCommandForInput() public method

public LearnCommandForInput ( DocumentId completionId, string input ) : void
completionId Core.API.DocumentId
input string
return void

RemoveItems() public method

public RemoveItems ( IItemSource source ) : void
source IItemSource
return void

RemoveItemsById() public method

public RemoveItemsById ( IItemSource source ) : void
source IItemSource
return void

SourceStorage() public method

public SourceStorage ( Lucene.Net.Store.Directory indexDirectory, ILearningRepository learningRepository, IConverterRepository converterRepository ) : System
indexDirectory Lucene.Net.Store.Directory
learningRepository ILearningRepository
converterRepository IConverterRepository
return System