public virtual void UpdateIndex(IndexRequestItem item, string namedIndexingService) { if (!SearchSettings.Config.Active) { throw new System.InvalidOperationException("Can not perform this operation when Niteco.Common.Search is not set as active in configuration"); } if (item == null) { throw new System.ArgumentNullException("item"); } if (string.IsNullOrEmpty(item.Id)) { throw new System.ArgumentException("The Id property cannot be null"); } RequestQueueHandler.Enqueue(item, namedIndexingService); }
public virtual void UpdateIndex(IndexRequestItem item) { this.UpdateIndex(item, null); }
internal static void Enqueue(IndexRequestItem request, string namedIndexingService) { SearchFactory.AddToQueue(request, namedIndexingService); }