Class ServicesCollectionExtensions
- Namespace
- Examine
- Assembly
- Examine.dll
Extensions for IServiceCollection
public static class ServicesCollectionExtensions
- Inheritance
-
ServicesCollectionExtensions
- Inherited Members
Methods
AddExamine(IServiceCollection, DirectoryInfo?)
Adds the Examine core services
public static IServiceCollection AddExamine(this IServiceCollection services, DirectoryInfo? appRootDirectory = null)
Parameters
services
IServiceCollectionappRootDirectory
DirectoryInfo
Returns
AddExamineLuceneIndex(IServiceCollection, string, FieldDefinitionCollection?, Analyzer?, IValueSetValidator?, IReadOnlyDictionary<string, IFieldValueTypeFactory>?)
Registers a file system based Lucene Examine index
[Obsolete("To remove in Examine V5")]
public static IServiceCollection AddExamineLuceneIndex(this IServiceCollection serviceCollection, string name, FieldDefinitionCollection? fieldDefinitions = null, Analyzer? analyzer = null, IValueSetValidator? validator = null, IReadOnlyDictionary<string, IFieldValueTypeFactory>? indexValueTypesFactory = null)
Parameters
serviceCollection
IServiceCollectionname
stringfieldDefinitions
FieldDefinitionCollectionanalyzer
Analyzervalidator
IValueSetValidatorindexValueTypesFactory
IReadOnlyDictionary<string, IFieldValueTypeFactory>
Returns
AddExamineLuceneIndex(IServiceCollection, string, Action<ExamineLuceneIndexConfiguration<LuceneIndex, FileSystemDirectoryFactory>>)
Registers a file system based Lucene Examine index
public static IServiceCollection AddExamineLuceneIndex(this IServiceCollection serviceCollection, string name, Action<ExamineLuceneIndexConfiguration<LuceneIndex, FileSystemDirectoryFactory>> configuration)
Parameters
serviceCollection
IServiceCollectionname
stringconfiguration
Action<ExamineLuceneIndexConfiguration<LuceneIndex, FileSystemDirectoryFactory>>
Returns
AddExamineLuceneIndex<TIndex>(IServiceCollection, string, FieldDefinitionCollection?, Analyzer?, IValueSetValidator?, IReadOnlyDictionary<string, IFieldValueTypeFactory>?)
Registers a file system based Lucene Examine index
[Obsolete("To remove in Examine V5")]
public static IServiceCollection AddExamineLuceneIndex<TIndex>(this IServiceCollection serviceCollection, string name, FieldDefinitionCollection? fieldDefinitions = null, Analyzer? analyzer = null, IValueSetValidator? validator = null, IReadOnlyDictionary<string, IFieldValueTypeFactory>? indexValueTypesFactory = null) where TIndex : LuceneIndex
Parameters
serviceCollection
IServiceCollectionname
stringfieldDefinitions
FieldDefinitionCollectionanalyzer
Analyzervalidator
IValueSetValidatorindexValueTypesFactory
IReadOnlyDictionary<string, IFieldValueTypeFactory>
Returns
Type Parameters
TIndex
AddExamineLuceneIndex<TIndex>(IServiceCollection, string, Action<ExamineLuceneIndexConfiguration<TIndex, FileSystemDirectoryFactory>>)
Registers a file system based Lucene Examine index
public static IServiceCollection AddExamineLuceneIndex<TIndex>(this IServiceCollection serviceCollection, string name, Action<ExamineLuceneIndexConfiguration<TIndex, FileSystemDirectoryFactory>> configuration) where TIndex : LuceneIndex
Parameters
serviceCollection
IServiceCollectionname
stringconfiguration
Action<ExamineLuceneIndexConfiguration<TIndex, FileSystemDirectoryFactory>>
Returns
Type Parameters
TIndex
AddExamineLuceneIndex<TIndex, TDirectoryFactory>(IServiceCollection, string, FieldDefinitionCollection?, Analyzer?, IValueSetValidator?, IReadOnlyDictionary<string, IFieldValueTypeFactory>?)
Registers an Examine index
[Obsolete("To remove in Examine V5")]
public static IServiceCollection AddExamineLuceneIndex<TIndex, TDirectoryFactory>(this IServiceCollection serviceCollection, string name, FieldDefinitionCollection? fieldDefinitions = null, Analyzer? analyzer = null, IValueSetValidator? validator = null, IReadOnlyDictionary<string, IFieldValueTypeFactory>? indexValueTypesFactory = null) where TIndex : LuceneIndex where TDirectoryFactory : class, IDirectoryFactory
Parameters
serviceCollection
IServiceCollectionname
stringfieldDefinitions
FieldDefinitionCollectionanalyzer
Analyzervalidator
IValueSetValidatorindexValueTypesFactory
IReadOnlyDictionary<string, IFieldValueTypeFactory>
Returns
Type Parameters
TIndex
TDirectoryFactory
AddExamineLuceneIndex<TIndex, TDirectoryFactory>(IServiceCollection, string, Action<ExamineLuceneIndexConfiguration<TIndex, TDirectoryFactory>>)
Registers an Examine index
public static IServiceCollection AddExamineLuceneIndex<TIndex, TDirectoryFactory>(this IServiceCollection serviceCollection, string name, Action<ExamineLuceneIndexConfiguration<TIndex, TDirectoryFactory>> configuration) where TIndex : LuceneIndex where TDirectoryFactory : class, IDirectoryFactory
Parameters
serviceCollection
IServiceCollectionname
stringconfiguration
Action<ExamineLuceneIndexConfiguration<TIndex, TDirectoryFactory>>
Returns
Type Parameters
TIndex
TDirectoryFactory
AddExamineLuceneMultiSearcher(IServiceCollection, string, string[], Analyzer?)
Registers a lucene multi index searcher
[Obsolete("Will be removed in Examine V5")]
public static IServiceCollection AddExamineLuceneMultiSearcher(this IServiceCollection serviceCollection, string name, string[] indexNames, Analyzer? analyzer = null)
Parameters
serviceCollection
IServiceCollectionname
stringindexNames
string[]analyzer
Analyzer
Returns
AddExamineLuceneMultiSearcher(IServiceCollection, string, string[], Action<ExamineLuceneMultiSearcherConfiguration>?)
Registers a lucene multi index searcher
public static IServiceCollection AddExamineLuceneMultiSearcher(this IServiceCollection serviceCollection, string name, string[] indexNames, Action<ExamineLuceneMultiSearcherConfiguration>? configuration = null)
Parameters
serviceCollection
IServiceCollectionname
stringindexNames
string[]configuration
Action<ExamineLuceneMultiSearcherConfiguration>
Returns
AddExamineSearcher<TSearcher>(IServiceCollection, string, Func<IServiceProvider, IList<object>>)
Registers a standalone Examine searcher
public static IServiceCollection AddExamineSearcher<TSearcher>(this IServiceCollection serviceCollection, string name, Func<IServiceProvider, IList<object>> parameterFactory) where TSearcher : ISearcher
Parameters
serviceCollection
IServiceCollectionname
stringparameterFactory
Func<IServiceProvider, IList<object>>A factory to fullfill the custom searcher construction parameters excluding the name that are not already registerd in DI.
Returns
Type Parameters
TSearcher