I took a quick look at FileListEntityProcessor#init, and it looks like it applies the "excludes" regex to the filename element of the path only, and not to the directories.
If your filenames do not have a naming convention that would let you use it this way, you might be able to write a transformer to get what you want. James Dyer Ingram Content Group -----Original Message----- From: coolmals [mailto:coolm...@gmail.com] Sent: Thursday, August 20, 2015 12:57 PM To: solr-user@lucene.apache.org Subject: exclude folder in dataimport handler. I am importing files from my file system and want to exclude import of files from folder called templatedata. How do i configure that in entity. excludes="templatedata" doesnt seem to work. <entity name="files" dataSource="null" rootEntity="false" processor="FileListEntityProcessor" baseDir="E:\Malathy\" fileName=".*\.*" excludes="templatedata" pk="id" onError="skip" recursive="true" > -- View this message in context: http://lucene.472066.n3.nabble.com/exclude-folder-in-dataimport-handler-tp4224267.html Sent from the Solr - User mailing list archive at Nabble.com.