Let's back up here. I'm guessing (since you didn't say) that you're using ExtractingRequestHandler here? How are you sending docs to Solr? You can always use "&literal.filename=whatever".
Best, Erick On Thu, Jun 26, 2014 at 2:02 PM, jrusnak <jrus...@live.unc.edu> wrote: > I am building an enterprise search Engine with Solr 4.8.1 (and the AJAX solr > interface, not relevant to this question though) - in doing so, I am > attempting to display the file names of each indexed document in my GUI > search results. > > In my gui, I can successfully display any field that is in Solr's Schema.xml > file (title, author, id, resourcename last_modified etc.). I cannot, > however, find a field in the schema.xml that holds the name of the file > (such as for the file Test.pdf the name "Test" or for Example.docx the word > "Example") > > The closest field I can find is "resourcename" which displays the entire > file path in my system (ex. > C:\Users\myusername\Documents\solr-4.8.1\example\exampledocs\filename.docx > when all I want to display is filename.docx) > > (1) How do I tell solr to index the name of a file? or (2) Is there a field > that cover the file name that I am just missing? > > Sincerest thanks! > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Getting-Solr-4-to-index-the-simple-names-of-files-tp4144318.html > Sent from the Solr - User mailing list archive at Nabble.com.