2010-06-17 16:21:29 -07:00
|
|
|
|
using System;
|
2010-07-11 12:11:38 -07:00
|
|
|
|
using System.Collections.Generic;
|
2010-06-17 16:21:29 -07:00
|
|
|
|
|
|
|
|
|
namespace Orchard.Indexing.Services {
|
2010-07-11 12:11:38 -07:00
|
|
|
|
public class IndexEntry {
|
|
|
|
|
public string IndexName { get; set; }
|
|
|
|
|
public int DocumentCount { get; set; }
|
2011-03-04 11:05:19 -08:00
|
|
|
|
public DateTime LastUpdateUtc { get; set; }
|
2010-07-11 12:11:38 -07:00
|
|
|
|
public IEnumerable<string> Fields { get; set; }
|
2011-03-04 11:05:19 -08:00
|
|
|
|
public IndexingStatus IndexingStatus { get; set; }
|
2010-07-11 12:11:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2010-06-17 16:21:29 -07:00
|
|
|
|
public interface IIndexingService : IDependency {
|
2013-03-04 16:00:55 -08:00
|
|
|
|
void DeleteIndex(string indexName);
|
2011-03-04 11:05:19 -08:00
|
|
|
|
void RebuildIndex(string indexName);
|
|
|
|
|
void UpdateIndex(string indexName);
|
|
|
|
|
IndexEntry GetIndexEntry(string indexName);
|
2010-06-17 16:21:29 -07:00
|
|
|
|
}
|
|
|
|
|
}
|