Class LuceneIndexDiagnosticsFactory
Implementation of IIndexDiagnosticsFactory which returns LuceneIndexDiagnostics for lucene based indexes that don't have an implementation else fallsback to the default IndexDiagnosticsFactory implementation.
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Examine.Lucene.dll
Syntax
public class LuceneIndexDiagnosticsFactory : IndexDiagnosticsFactory, IIndexDiagnosticsFactory
Constructors
View SourceLuceneIndexDiagnosticsFactory(ILoggerFactory, IHostingEnvironment)
Declaration
public LuceneIndexDiagnosticsFactory(ILoggerFactory loggerFactory, IHostingEnvironment hostingEnvironment)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggerFactory | loggerFactory | |
| IHostingEnvironment | hostingEnvironment |
Methods
View SourceCreate(IIndex)
Creates an IIndexDiagnostics instance for the given Examine.IIndex.
Declaration
public override IIndexDiagnostics Create(IIndex index)
Parameters
| Type | Name | Description |
|---|---|---|
| IIndex | index | The index to create diagnostics for. |
Returns
| Type | Description |
|---|---|
| IIndexDiagnostics | An IIndexDiagnostics instance associated with the provided index. |