Project Description
The FSSearchIndex Framework project provides a framework that allows application developers to write their own full text content based file search and indexing applications.

The framework is very simple to use and a complete file system indexing and searching solution can be written using this framework with very little effort.

The framework currently supports the following features:

1.) Full text Content based searching.
2.) Full text Content indexing.
3.) Support for searching and indexing through text content files, MS Word 2007 files, Excel workbooks and PDF files.

For known issues that will be fixed in at a later stage please visit the Issue tracker.

Given below are examples for using the framework API.
Indexing Framework API invocation example
IndexingEngine indexEngine = new IndexingEngine();

            //profile the time that is needed for the indexing of the C drive apprx
            //14 gigs in size

            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Start();

            indexEngine.Index();

            stopWatch.Stop();

            Console.WriteLine("Indexed all drives in {0} minutes", stopWatch.Elapsed.Minutes);

Search engine API invocation
FileSearchEngine fileSearchEngine = new FileSearchEngine(@"C:\Documents and Settings\prahaladd\My Documents\PeePaal help");

            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Start();

            Dictionary<string,List<int>> fileNamesToOccurencePositions = 
                fileSearchEngine.SearchFilesForPattern("excel", false); // set the second parameter to "true" to perform an index based search

            stopWatch.Stop();

Last edited Oct 17, 2010 at 1:50 PM by prahaladd, version 6