Class IndexService
- Namespace
- Dynamicweb.Indexing
- Assembly
- Dynamicweb.Core.dll
Represents index service
public class IndexService : IIndexService
- Inheritance
-
IndexService
- Implements
- Inherited Members
Properties
BaseFolder
Gets or sets index service base folder
public static string BaseFolder { get; set; }
Property Value
Methods
BuildIndex(string, string, string)
Builds index
public void BuildIndex(string name, string instance, string build)
Parameters
BuildIndex(string, string, string, IDictionary<string, string>)
Builds the index.
public void BuildIndex(string name, string instance, string build, IDictionary<string, string> meta)
Parameters
namestringThe name.
instancestringThe instance.
buildstringThe build.
metaIDictionary<string, string>The meta.
BuildIndex(string, string, string, IDictionary<string, string>, bool)
Start index building task
public void BuildIndex(string name, string instance, string build, IDictionary<string, string> meta, bool isResume)
Parameters
namestringIndex file name
instancestringIndex instance name
buildstringBuild name
metaIDictionary<string, string>Meta data
isResumeboolTrue if IsResume
BuildIndex(string, string, string, string)
Builds index
public void BuildIndex(string repository, string item, string instance, string build)
Parameters
repositorystringRepository name
itemstringItem name
instancestringInstance name
buildstringBuild name
BuildIndex(string, string, string, string, IDictionary<string, string>)
Builds index
public void BuildIndex(string repository, string item, string instance, string build, IDictionary<string, string> meta)
Parameters
repositorystringRepository name
itemstringItem name
instancestringInstance name
buildstringBuild name
metaIDictionary<string, string>Meta data
BuildIndex(string, string, string, string, IDictionary<string, string>, bool)
Builds index
public void BuildIndex(string repository, string item, string instance, string build, IDictionary<string, string> meta, bool isResume)
Parameters
repositorystringRepository name
itemstringItem name
instancestringInstance name
buildstringBuild name
metaIDictionary<string, string>Meta data
isResumeboolTrue if isResume
ClearCache(string, string)
Clear a cached index scheme
public void ClearCache(string repository, string item)
Parameters
ClearIndexCaches(Type)
Finds index schemes related to specific IndexSchemaExtenderType and calls ClearCache on those indexes.
public static void ClearIndexCaches(Type IndexSchemaExtenderType)
Parameters
IndexSchemaExtenderTypeType
DeleteIndex(string)
Deletes repository index
public void DeleteIndex(string repository)
Parameters
repositorystringRepository name
GetActiveBuildTasks(IIndex)
Gets list of active build tasks
public IEnumerable<TaskInfo> GetActiveBuildTasks(IIndex index)
Parameters
indexIIndexIndex
Returns
- IEnumerable<TaskInfo>
Enumeration of TaskInfo
GetQueries<TIndexBuilder>()
Gets repository service queries
public IEnumerable<IQuery> GetQueries<TIndexBuilder>()
Returns
- IEnumerable<IQuery>
Enumeration of IQuery
Type Parameters
TIndexBuilderType of IndexBuilder
GetQueries<TIndexBuilder>(string)
Gets repository queries
public IEnumerable<IQuery> GetQueries<TIndexBuilder>(string repository)
Parameters
repositorystringRepository file name
Returns
- IEnumerable<IQuery>
IQuery objects enumeration
Type Parameters
TIndexBuilderType of index builder
LoadIndex(string)
Loads index
public IIndex? LoadIndex(string name)
Parameters
namestringIndex file name
Returns
LoadIndex(string, string)
Loads index
public IIndex? LoadIndex(string repository, string item)
Parameters
Returns
SaveIndex(string, IIndex)
Saves index data to xml format
public void SaveIndex(string name, IIndex index)
Parameters
SaveIndex(string, string, IIndex)
Saves index
public void SaveIndex(string repository, string item, IIndex index)