Class IndexHelper
- Namespace
- Dynamicweb.Indexing
- Assembly
- Dynamicweb.Core.dll
Class provides auxiliary methods
public static class IndexHelper
- Inheritance
-
IndexHelper
- Inherited Members
Methods
BuildIndexInstances(string, string, string)
public static void BuildIndexInstances(string repository, string indexName, string buildName)
Parameters
ConvertToIndex(XElement)
Converts json object to index
public static IIndex ConvertToIndex(XElement obj)
Parameters
obj
XElementXml data
Returns
- IIndex
IIndex based object instance
ConvertToXml(IIndex)
Converts index instance data to xml element
public static XElement ConvertToXml(IIndex index)
Parameters
index
IIndexIndex instance
Returns
GetIndexDocument(string, string, int)
public static IndexDocument? GetIndexDocument(string repository, string itemName, int id)
Parameters
Returns
GetIndexStatusInformation(string, string)
Gets index status
public static IndexStatusInformation? GetIndexStatusInformation(string repositoryName, string indexName)
Parameters
Returns
GetIndexWithSchemaExtender(string)
public static IEnumerable<IIndex> GetIndexWithSchemaExtender(string schemaExtenderName)
Parameters
schemaExtenderName
string
Returns
GetIndexesStatusInformation()
Gets all indexes status
public static IEnumerable<IndexStatusInformation> GetIndexesStatusInformation()
Returns
GetIndexesStatusInformation(string)
Gets repository indexes status
public static IEnumerable<IndexStatusInformation> GetIndexesStatusInformation(string repositoryName)
Parameters
repositoryName
stringRepository name
Returns
GetInstanceLatestStatus(string, string, string)
Gets instance last build status
public static Status? GetInstanceLatestStatus(string repository, string index, string instance)
Parameters
Returns
- Status
Last build status. Null if build was not ever made
GetTaskName(string, string, string)
public static string GetTaskName(string folderName, string fileName, string instance)
Parameters
Returns
IsInstanceAvailable(IIndexProvider)
Shows if instance available
public static bool IsInstanceAvailable(IIndexProvider instance)
Parameters
instance
IIndexProviderIndexProvider Instance
Returns
- bool
True if instance is available
IsInstanceAvailable(string, string, string)
Shows if instance available
public static bool IsInstanceAvailable(string repository, string index, string instance)
Parameters
Returns
- bool
True if instance is available
Merge(XElement, IIndex)
Merges XElement data to index
public static void Merge(XElement element, IIndex index)
Parameters
SendIndexBuildFinishedNotification(Tracker, IIndexBuilderNotification)
Sends index build finished notification
public static void SendIndexBuildFinishedNotification(Tracker tracker, IIndexBuilderNotification notificationSettings)
Parameters
tracker
TrackerThe tracker
notificationSettings
IIndexBuilderNotificationThe notification settings