if (isIncluded(file) && !isExcluded(file)) {
Document doc = processFile(file, docFactory);
if (doc != null) {
doc.addField("fileName", file.getName(), StoreOption.YES,
IndexOption.TOKENIZED);
doc.addField("filePath", file.getAbsolutePath(),
StoreOption.YES, IndexOption.NO);
doc.addField("fileSize", file.length() / 1024 + "KB",
StoreOption.YES, IndexOption.NO);
doc.addField("modificationTime", DateTools.dateToString(
(new Date(file.lastModified())),