You could use DataImportHandler with FileListEntityProcessor to get the
file names in:
http://wiki.apache.org/solr/DataImportHandler#FileListEntityProcessor

Then, if it is recursive enumeration and not just one level, you probably
want a tokenizer that splits on path separator characters (e.g. /). Or
maybe you want to index filename as a separate field from full path (can do
it in FileListEntityProcessor itself).

And if you combined the list of files with inner entity using Tika, you can
load the file content for searching as well:
http://wiki.apache.org/solr/DataImportHandler#Tika_Integration

Regards,
   Alex.

Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)


On Thu, Mar 7, 2013 at 3:39 PM, pavangolla <pavango...@gmail.com> wrote:

> HI,
> I am new to apache solr,
>
> I am doing a poc, where there is a folder (in sys or some repository) which
> has different files with diff extensions pdf, doc, xls..,
>
> I want to search with a file name and retrieve all the files with the name
> matching
>
> How do i proceed on this.
>
> Please help me on this.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Search-a-folder-with-File-name-and-retrieve-all-the-files-matched-tp4045629.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to