|
|
The core of the search engine
By using high-level libraries for file
utilities, the core of the search engine
does two things
-
Identify the files to scan
based on base directories
and file types.
-
Scan the files for the search phrases.
Should you really be concerned about more than this?
|
// here we go...
long timeStart = System.currentTimeMillis();
File[] filesToScan = Find.byDirectoryAndType(directory, fileType);
File[] matches = Edit.search(filesToScan, searchString);
long timeEnd = System.currentTimeMillis();
|
|