Beispiel #1
0
        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);
        }
Beispiel #2
0
 public virtual void UpdateIndex(IndexRequestItem item)
 {
     this.UpdateIndex(item, null);
 }
Beispiel #3
0
 internal static void Enqueue(IndexRequestItem request, string namedIndexingService)
 {
     SearchFactory.AddToQueue(request, namedIndexingService);
 }