|
@@ -174,14 +174,15 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ISearchE
|
|
|
{
|
|
|
// ...
|
|
|
// 导入自定义词库
|
|
|
- KeywordsManager.AddWords("男娼起义");
|
|
|
- KeywordsManager.AddWords("阳物运动");
|
|
|
- KeywordsManager.AddWords("弟大勿勃");
|
|
|
+ KeywordsManager.AddWords("面向对象编程语言");
|
|
|
+ KeywordsManager.AddWords("懒得勤快");
|
|
|
+ KeywordsManager.AddWords("码数科技");
|
|
|
|
|
|
// 导入自定义同义词
|
|
|
- KeywordsManager.AddSynonyms("地大物博","弟大勿勃");
|
|
|
- KeywordsManager.AddSynonyms("难上加难","男上夹男");
|
|
|
- KeywordsManager.AddSynonyms("小心地滑","小心弟滑");
|
|
|
+ KeywordsManager.AddSynonyms("RDM","Redis Desktop Manager");
|
|
|
+ KeywordsManager.AddSynonyms("RDM","Remote Desktop Manager");
|
|
|
+ KeywordsManager.AddSynonyms("VS","Visual Studio");
|
|
|
+ KeywordsManager.AddSynonyms("VS","Video Studio");
|
|
|
|
|
|
// 初始化索引库,建议结合定时任务使用,定期刷新索引库
|
|
|
string lucenePath = Path.Combine(env.ContentRootPath, luceneIndexerOptions.Path);
|