Skip to content

Commit

Permalink
局部修改。
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanping committed Jan 5, 2014
1 parent 8a21759 commit 8fb5cf1
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
2 changes: 1 addition & 1 deletion Iveely.Framework/Iveely.Framework/Algorithm/AI/User.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
2 changes: 1 addition & 1 deletion Iveely.Framework/Iveely.Framework/Text/LocalStore.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down
88 changes: 44 additions & 44 deletions Iveely.SearchEngine/Backstage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,50 +123,50 @@ public override void Run(object[] args)
}
Urls.Add("http://www.baike.com");

StartSearcher();
//Thread searchThread = new Thread(StartSearcher);
//searchThread.Start();

//Thread.Sleep(10000);

////2. 循环数据采集
//while (Urls.Count > 0)
//{
// List<Page> pages = new List<Page>();
// try
// {
// //2.1 爬虫开始运行
// Crawler(ref pages);
// }
// catch (Exception exception)
// {
// Logger.Warn(exception);
// }

// //2.2 索引器开始运行
// if (pages != null && pages.Count > 0)
// {
// try
// {
// Indexer(ref pages);
// }
// catch (Exception exception)
// {
// Logger.Warn(exception);
// }

// }

// //2.3 更新url
// try
// {
// Urls.AddRange(GetKeysByValueFromCache(false, 10, true));
// }
// catch (Exception exception)
// {
// Logger.Warn(exception);
// }
//}
//StartSearcher();
Thread searchThread = new Thread(StartSearcher);
searchThread.Start();

Thread.Sleep(10000);

//2. 循环数据采集
while (Urls.Count > 0)
{
List<Page> pages = new List<Page>();
try
{
//2.1 爬虫开始运行
Crawler(ref pages);
}
catch (Exception exception)
{
Logger.Warn(exception);
}

//2.2 索引器开始运行
if (pages != null && pages.Count > 0)
{
try
{
Indexer(ref pages);
}
catch (Exception exception)
{
Logger.Warn(exception);
}

}

//2.3 更新url
try
{
Urls.AddRange(GetKeysByValueFromCache(false, 10, true));
}
catch (Exception exception)
{
Logger.Warn(exception);
}
}
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Iveely.SearchEngine/Library.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*==========================================
*创建人:刘凡平
*邮 箱:liufanping@iveely.com
*电 话:13896622743
*电 话:
*版 本:0.1.0
*Iveely=I void everything,except love you!
*========================================*/
Expand Down

0 comments on commit 8fb5cf1

Please sign in to comment.