Method | Description | |
---|---|---|
CreateDisposableReader ( ) : |
Creates an index reader. The caller is responsible for disposing the reader when done.
|
|
ForceFlushQueue ( ) : void | ||
GetScopedLuceneSearcher ( ) : IndexSearcher |
Gets an index searcher by using the reader whose lifetime is managed by GetScopedReader.
|
|
GetScopedReader ( ) : |
Gets a reader that is added to IFrameworkContext.ScopedCache, or returns the one already added. Disposal is handled by IFrameworkContext.ScopedFinalizer.
|
|
IndexController ( IndexConfiguration configuration, Func |
||
IndexController ( IndexConfiguration configuration, IFrameworkContext frameworkContext ) : System | ||
Initialise ( ) : void | ||
PartialFlushQueue ( int flushLimit ) : void | ||
QueueAdd ( Document document ) : void |
Queues the addition of an index document.
|
|
QueueBatch ( ) : void |
Queues a batch of index modifications.
|
|
QueueRemoveAll ( ) : void |
Queues the removal of all index documents. Caller should also call ForceFlushQueue if they wish to block until the removal is flushed. |
|
QueueRemoveWhere ( Term term ) : void |
Queues the removal of an index document matching the supplied term.
|
Method | Description | |
---|---|---|
DisposeResources ( ) : void | ||
FlushQueue ( ) : void |
Method | Description | |
---|---|---|
CreateLuceneReader ( ) : global::Lucene.Net.Index.IndexReader | ||
CreateLuceneReader ( global::Lucene.Net.Store.Directory directory, bool secondAttempt = false ) : global::Lucene.Net.Index.IndexReader | ||
CreateLuceneWriter ( ) : IndexWriter | ||
CreateLuceneWriter ( StandardAnalyzer standardAnalyzer, global::Lucene.Net.Store.Directory directory ) : IndexWriter | ||
CreateTransactionWorker ( ) : TransactionalIndexWorker | ||
EnactBatch ( TransactionalIndexWorker worker, |
||
GetAnalyzer ( ) : StandardAnalyzer | ||
GetBuildLocationInfo ( ) : |
||
GetLuceneDirectory ( ) : global::Lucene.Net.Store.Directory | ||
GetLuceneDirectory ( |
||
InitialiseBlankIndex ( global::Lucene.Net.Store.Directory directory ) : void | ||
LogQueueMonitorError ( string logMessage, Exception exception ) : void | ||
MonitorIndexBatch ( ) : void |
Repeatedly checks IndexModificationQueue for new batches, and calls FlushQueue if any are found.
|
|
SetFrameworkContext ( IFrameworkContext frameworkContext ) : void |
Sets the framework context. Used within IoC registration to avoid a circular reference / stack overflow because IFrameworkContext has Caches which could have this provider, which needs an IFrameworkContext
|
|
StartQueueMonitor ( ) : void |
Starts the queue monitor Task.
|
public CreateDisposableReader ( ) : |
||
return |
public GetScopedLuceneSearcher ( ) : IndexSearcher | ||
return | IndexSearcher |
public IndexController ( IndexConfiguration configuration, Func |
||
configuration | IndexConfiguration | |
frameworkContextGetter | Func |
|
return | System |
public IndexController ( IndexConfiguration configuration, IFrameworkContext frameworkContext ) : System | ||
configuration | IndexConfiguration | |
frameworkContext | IFrameworkContext | |
return | System |
public PartialFlushQueue ( int flushLimit ) : void | ||
flushLimit | int | |
return | void |
public QueueAdd ( Document document ) : void | ||
document | Document | The document. |
return | void |
public QueueRemoveWhere ( Term term ) : void | ||
term | Term | The term. |
return | void |