Neelesh Malvi

Neelesh Malvi

  • NA
  • 125
  • 0

dtSearch functionality

Jan 9 2013 8:33 AM
 Hi everyone, i am Neelesh.

I am working on dot net plat form. I wan to implement dtSearch functionality in ASP.net with C#.

here is my code.

could u plz help me?


SearchJob SJob1 = new SearchJob();
            SJob1.IndexesToSearch = @"C:\dtSearch\test\test.tif.pdf";

            SJob1.BooleanConditions = "page";

            SJob1.MaxFilesToRetrieve = 10;

            SJob1.Execute();

            MessageBox.Show(SJob1.HitCount.ToString());

            SearchResults results = (SearchResults)SJob1.Results;
            for (int i = 0; i < results.Count; ++i)
            {
                results.GetNthDoc(i);
                listBox1.Items.Add(results.DocName);
            }

            FileConverter FC = new FileConverter();

            FC.InputFile = results.DocName;
            FC.Hits = results.DocHits;
            FC.OutputToString = true;
            FC.Execute();

            SearchReportJob srj = new SearchReportJob();

waiting for reply........