Ejemplo n.º 1
0
        static void Main()
        {
            LogHelper.Init();
            // 清除缓存
            RedisManager.Dbs["Db4"].Clear();

            try
            {
                HotelNameMapping.InitMappinng();
            }
            catch
            {
                LogHelper.Write("There is no map file information", LogHelper.LogMessageType.Error);
                return;
            }
            FtpDownload.AnyFileDownLoadedOperate = FileToRedis.GenerateRedisData;
            FtpDownload.GetDataAsync().Wait();

            HotelNameMapping.DisposeIndexDirectory();
        }
Ejemplo n.º 2
0
 private static string HotelMap(string PROPERTY_NAME)
 {
     //   使用Lunene 匹配
     return(HotelNameMapping.LuceneMap(PROPERTY_NAME));
 }