lucene - In Solr 4 - How do I include file names in the index? -
i building search engine solr 4.8.1 - in doing so, attempting display file names of each indexed document in gui search results.
i can display field in solr's schema.xml file (title, author, id, resourcename last_modified etc.). cannot, however, find field in schema.xml holds name of file (such file test.pdf name "test" or example.docx word "example")
the closest field can find "resourcename" displays entire file path in scheme (ex. c:\users\myusername\documents\solr-4.8.1\example\exampledocs\filename.docx when want display filename.docx)
(1) how tell solr index name of file? or (2) there field cover file name missing?
sincerest thanks!
---research update--- seems question asking same thing - solr homecoming file name - however, not believe adding field called "filename" cause solr index file name! know need add together field schema.xml file - how point field name of file?
this not much question regarding solr functionality tools utilize publish solr. while adding new field called filename solr resolve part of issue, modifying publish tool add together testpdf.pdf value each . guess i'd point eyes @ tika : http://tika.apache.org/ , seeing how mention both pdf , doc files.
solr lucene schema xsd solr-schema
No comments:
Post a Comment