public void Setup() { String _curPath = Environment.CurrentDirectory; _config = new HootConfig { IndexPath = Path.Combine(_curPath, "Indexer"), DocMode = false, UseStopList = false, IgnoreNumerics = false }; s = @"134,909.09090 ....................................... abcdefg..--=- B.A.T. a.k.a. 1111111111 111.2342314 ---------------- brain-dead c:\dir1\dir2 http://www.google.com/path1/path2 hoot.property camelCase field PascalCase property/ @test;pppp=1 .aaaaa ..bbbbb com.ionic.framework [email protected] filename.docx filename.pdf "; }
public void Setup() { _config = new HootConfig { DocMode = true, IndexPath = "FullTextIndexes", FileName = "NunitTests", UseStopList = true, IgnoreNumerics = true }; }
/// <summary> /// Load Hoot /// </summary> private void loadhoot() { if (txtIndexFolder.Text == "") { MessageBox.Show("Please supply the index storage folder."); return; } HootConfig _config = new HootConfig { IndexPath = Path.GetFullPath(txtIndexFolder.Text), FileName = "index", DocMode = true, UseStopList = cbUseStopList.Checked, IgnoreNumerics = cbIgnoreNumeric.Checked }; hoot = new Hoot(_config); button1.Enabled = false; }