Example #1
0
        /*
         * /// <summary>
         * /// 每次更新索引的最大数目
         * /// </summary>
         * private int count = 1000;
         * */

        public void Execute(System.Xml.XmlNode node)
        {
            /*
             * XmlAttribute countNode = node.Attributes["count"];
             * if (countNode != null)
             * {
             *  try
             *  {
             *      count = int.Parse(countNode.Value);
             *  }
             *  catch
             *  {
             *      count = 1000;
             *  }
             * }
             */
            //new HHException(ExceptionType.UnknownError, "ProductIndexTask Start").Log();
            ProductSearchManager.InitializeIndex();
            //new HHException(ExceptionType.UnknownError, "ProductIndexTask End").Log();
        }
Example #2
0
 public override void InitializeIndex(string indexPath)
 {
     ProductSearchManager.InitializeIndex(indexPath);
 }