You should use file instead of fileName in column

<field column="file" name="fileName"/>

Don't forget to add the 'fileName' to the schema.xml in the fields section.

<field name="fileName" type="string" indexed="true" stored="true" />


Have fun,

Daniel Rijkhof
06 12 14 12 17



On Mon, May 16, 2011 at 4:20 PM, Marcel Panse <marcel.pa...@gmail.com>wrote:

> Hi, thanks for the reply.
>
> I tried a couple of things both in the tika-test entity and in the entity
> named 'f'.
> In the tika-test entity I tried:
>
> <field column="fileName" name="${f.fileName}" />
> <field column="fileName" name="${f.file}" />
>
> even
>
> <field column="fileName" name="${f.fileAbsolutePath}" />
>
> I also tried doing things in the entity 'f' like:
>
> <field column="fileName" name="fileName"/>
> <field column="fileName" name="file"/>
>
> None of it works. I also added fileName to the schema like:
>
> <field name="fileName" type="string" indexed="true" stored="true" />
>
> In fields. Doesn't help.
>
> Can anyone provide me with a working example? I'm pretty stuck here on
> something that seems really trivial and simple :-(
>
>
>
> On Sat, May 14, 2011 at 22:56, kbootz <kbo...@caci.com> wrote:
>
> > There is a JIRA item(can't recall it atm) that addresses the issue with
> the
> > docs. I'm running 3.1 and per your example you should be able to get it
> > using ${f.file}. I think* it should also be in the entity desc. but I'm
> > also
> > new and that's just how I access it.
> >
> > GL
> >
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/Show-filename-in-search-result-using-a-FileListEntityProcessor-tp2939193p2941305.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>

Reply via email to