You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2017/05/21 22:18:04 UTC

[jira] [Closed] (SOLR-1994) FileListEntityProcessor probably matches filenames a bit too generously

     [ https://issues.apache.org/jira/browse/SOLR-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl closed SOLR-1994.
-----------------------------
    Resolution: Won't Fix

Closing ancient issue due to lack of interest, and it is not a bug. If reporter still feels something is needed here, please re-open.

> FileListEntityProcessor probably matches filenames a bit too generously
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1994
>                 URL: https://issues.apache.org/jira/browse/SOLR-1994
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>            Reporter: Niklas Eklund
>            Priority: Minor
>
> FileListEntityProcessor uses fileNamePattern.matcher(name).find() to check if a file matches the pattern. This probably makes it match too much for what the (ordinary) user wants since that effectively means that if the filename contains the pattern the file will match. As a user you usually expect the pattern to match all of the filename and not having to use ^ and $ explicitly. For instance appending ".old" or prepending "test_20100101_"  to your filename for old or test copies wont work  since all files will be processed and confusion usually follows.
> Either the documentation should be updated to note that extra care is needed for the file pattern or the usage of find() should be replaced with Pattern.matches().



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org