public IList <SearchInfo> Search(List <SearchCondition> conditions, int pageIndex, int pageSize, ref int total) { var service = new LuceneService(); service.LanguageCode = LanguageCode; return(service.Search(conditions, true, pageIndex, pageSize, ref total)); }
public void ResetCache() { var data = ExecuteReader("sp_Search_BuildJson", new SqlParameter("@LanguageCode", LanguageCode)); var service = new LuceneService { LanguageCode = LanguageCode }; service.ClearLuceneIndex(); service.AddUpdateLuceneIndex(data.Tables[0]); }