I indexed word documents in Solr. But When i query with search text , then returning xml file contains searched text but no the name of the file which contains the text,.
For Ex:
Let the word document Printer.doc
& models.doc
contains the word HP
.
When I give HP
as query word , the returning XML response must have tags as
<doc>
<str name="filename" >Printer.doc </str>
<str name ="filename" >models.doc</str>
How to ahive this..
I use follwing command to upload and index document
java -Durl=http://localhost:8983/solr/update/extract?literal.id=1 -Dtype=application/word -jar post.jar *.doc
Please tell me how to do ?