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
name
stringThe name.
instance
stringThe instance.
build
stringThe build.
meta
IDictionary<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
name
stringIndex file name
instance
stringIndex instance name
build
stringBuild name
meta
IDictionary<string, string>Meta data
isResume
boolTrue if IsResume
BuildIndex(string, string, string, string)
Builds index
public void BuildIndex(string repository, string item, string instance, string build)
Parameters
repository
stringRepository name
item
stringItem name
instance
stringInstance name
build
stringBuild 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
repository
stringRepository name
item
stringItem name
instance
stringInstance name
build
stringBuild name
meta
IDictionary<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
repository
stringRepository name
item
stringItem name
instance
stringInstance name
build
stringBuild name
meta
IDictionary<string, string>Meta data
isResume
boolTrue 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
IndexSchemaExtenderType
Type
DeleteIndex(string)
Deletes repository index
public void DeleteIndex(string repository)
Parameters
repository
stringRepository name
GetActiveBuildTasks(IIndex)
Gets list of active build tasks
public IEnumerable<TaskInfo> GetActiveBuildTasks(IIndex index)
Parameters
index
IIndexIndex
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
TIndexBuilder
Type of IndexBuilder
GetQueries<TIndexBuilder>(string)
Gets repository queries
public IEnumerable<IQuery> GetQueries<TIndexBuilder>(string repository)
Parameters
repository
stringRepository file name
Returns
- IEnumerable<IQuery>
IQuery objects enumeration
Type Parameters
TIndexBuilder
Type of index builder
LoadIndex(string)
Loads index
public IIndex? LoadIndex(string name)
Parameters
name
stringIndex 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)