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; }
|
|
|
|
|
public DateTime? LastUpdateUtc { get; set; }
|
|
|
|
|
public IEnumerable<string> Fields { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2010-06-17 16:21:29 -07:00
|
|
|
|
public interface IIndexingService : IDependency {
|
|
|
|
|
void RebuildIndex();
|
|
|
|
|
void UpdateIndex();
|
2010-07-11 12:11:38 -07:00
|
|
|
|
IndexEntry GetIndexEntry();
|
2010-06-17 16:21:29 -07:00
|
|
|
|
}
|
|
|
|
|
}
|