示例#1
0
        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));
        }
示例#2
0
        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]);
        }