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. Schema is filled by default.
public static IIndex ConvertToIndex(XElement obj)
Parameters
objXElementXml data
Returns
- IIndex
IIndex based object instance
ConvertToIndex(XElement, bool)
Converts json object to index.
public static IIndex ConvertToIndex(XElement obj, bool fillSchema)
Parameters
Returns
- IIndex
IIndex based object instance
ConvertToXml(IIndex)
Converts index instance data to xml element
public static XElement ConvertToXml(IIndex index)
Parameters
indexIIndexIndex 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
schemaExtenderNamestring
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
repositoryNamestringRepository 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
instanceIIndexProviderIndexProvider 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
trackerTrackerThe tracker
notificationSettingsIIndexBuilderNotificationThe notification settings