public bool RemoveDocument(string filename) { // remove doc based on filename byte[] b; if (_docs.Get(filename.ToLower(), out b)) { Document d = fastJSON.JSON.ToObject <Document>(Encoding.Unicode.GetString(b)); RemoveDocument(d.DocNumber); return(true); } return(false); }
/// <summary> /// Check if a File is Indexed /// </summary> /// <param name="filename"></param> /// <returns></returns> public bool IsIndexed(string filename) { byte[] b; return(_docs.Get(filename.ToLower(), out b)); }