public LuceneExecutor(IStoredSettings settings, File repositoriesFolder) {\r
this.storedSettings = settings;\r
this.repositoriesFolder = repositoriesFolder;\r
+ String exts = luceneIgnoreExtensions;\r
+ if (settings != null) {\r
+ exts = settings.getString(Keys.web.luceneIgnoreExtensions, exts);\r
+ }\r
+ excludedExtensions = new TreeSet<String>(StringUtils.getStringsFromValue(exts));\r
}\r
\r
/**\r
// index the blob content\r
if (StringUtils.isEmpty(ext) || !excludedExtensions.contains(ext)) { \r
ObjectLoader ldr = repository.open(blobId, Constants.OBJ_BLOB);\r
- InputStream in = ldr.openStream(); \r
+ InputStream in = ldr.openStream(); \r
int n;\r
while ((n = in.read(tmp)) > 0) {\r
os.write(tmp, 0, n);\r