public void IndexTitle(long titleId) { DataManager da = new DataManager(); List <IndexableEntity> subtitleTextCollection = da.SubtitlesTextGetByTitleId(titleId); if (subtitleTextCollection != null) { IndexMiner.AddUpdateLuceneIndex(subtitleTextCollection); } da.TitlesIndexStatusUpdate(titleId, "Indexed"); }
public void ParseAndReIndexAll() { DataManager da = new DataManager(); List <Title> allTitles = da.TitlesGetAll(); if (allTitles != null) { IndexMiner.ClearLuceneIndex(); foreach (Title t in allTitles) { ParseTitle(t.Id); IndexTitle(t.Id); } } }
public List <IndexableEntity> Search(Dictionary <string, string> searchTerms, string userId = "") { IEnumerable <IndexableEntity> searchedData = IndexMiner.SearchByMultipleFields(searchTerms); return(LoadActualDataForIndexSearchResult(searchedData, userId)); }
public List <IndexableEntity> Search(string criteria, string filmName = "", string userId = "") { IEnumerable <IndexableEntity> searchedData = IndexMiner.Search(criteria, filmName); return(LoadActualDataForIndexSearchResult(searchedData)); }