Laxman Rana
Laxman Rana

Reputation: 2924

Apache Solr link to uploaded file not working

I have successfully install Apache Solr and uploaded pdf and doc files using the command

curl "http://localhost:8983/solr/update/extract?literal.id=id&commit=true" -F      "[email protected]" 

files get uploaded and results are displayed as per the query but when I click on file name it gives 404 error saying resoure does not exist.

I want to add custom field to be displayed along with contents of file, I want a link of file path to displayed along with the search result

Any pointers or suggestion will be helpful.

Thanks !!!

Upvotes: 2

Views: 582

Answers (1)

Jayendra
Jayendra

Reputation: 52779

Solr does not store the complete file as is.
It just stores the extracted content.
So you can only display those unformatted text.

Also, Solr can't link the file uploaded.
You would need to host these files to be download from http and use that url as additional metadata with indexing to enable the file download.

Upvotes: 4

Related Questions