/// <summary> /// インデックス作成 /// </summary> /// <param name="rootPath"></param> /// <param name="targetDir"></param> /// <param name="progress"></param> /// <param name="txtExtractMode"></param> public async static void CreateIndexBySingleThread( string rootPath, string targetDir, IProgress <ProgressReport> progress, TextExtractModes txtExtractMode, string orgIndexStorePath = "") { DoStop = false; try { _txtExtractMode = txtExtractMode; var worker = await CreateIndexAsync(rootPath, targetDir, progress, orgIndexStorePath); AppObject.Logger.Info("インデックス構築完了"); } catch (Exception e) { AppObject.Logger.Error(e.StackTrace); } finally { } }
public async static void CreateWebIndexBySingleThread( string rootPath, string targetUrl, Dictionary <string, WebContents> targetDic, IProgress <ProgressReport> progress, TextExtractModes txtExtractMode) { DoStop = false; try { _txtExtractMode = txtExtractMode; var worker = await CreateWebIndexAsync(rootPath, targetUrl, targetDic, progress); AppObject.Logger.Info("インデックス構築完了"); } catch (Exception e) { AppObject.Logger.Error(e.StackTrace); } finally { } }
public async static void CreateIndexByMultiRAM( Analyzer analyzer, string rootPath, string targetDir, IProgress <ProgressReport> progress, TextExtractModes txtExtractMode) { try { _txtExtractMode = txtExtractMode; //先に対象ファイルを分割 _targetFileList = SplitTargetFiles(targetDir); var worker = await CreateRAMIndexAsync(analyzer, rootPath, targetDir, progress); //インデックスファイルを一時構築用から検索用に移動 CopyIndexDir(rootPath + BuildDirName, rootPath + IndexDirName); AppObject.Logger.Info("インデックス構築処理完了"); } catch (Exception e) { AppObject.Logger.Error(e.Message); } finally { } }