public string IndexLink(int id) { LuceneSearcher searcher = new LuceneSearcher(new SearchQuery()); return searcher.DocIsIndexed(id) ? string.Empty : string.Format("<a href='indexdocument.aspx?id={0}'>[index]</a>", id); }
public string DeleteLink(int id) { LuceneSearcher searcher = new LuceneSearcher(new SearchQuery()); return !searcher.DocIsIndexed(id) ? string.Empty : string.Format("<a href='deletedocument.aspx?id={0}'>[delete]</a>", id); }