Kehaar
Kehaar

Reputation: 119

Is there a way to get solr to return a pdf with the query matches highlighted?

I'm using solrJ to search pdfs that I have indexed in solr and stored in mongoDB.

Everything is indexed properly, and I'm able to get an html response with the query matches highlighted as expected, but the formatting is odd and there are a lot of garbage characters as a result of the conversion from pdf to text.

Is there a way I can get solr to just give me the pdf with highlights?

Upvotes: 0

Views: 79

Answers (1)

MatsLindh
MatsLindh

Reputation: 52872

No, there is no built-in way you can make Solr return a PDF with the PDF changed to highlight the matching parts.

Upvotes: 1

Related Questions