I would now like to show a portion of the text related to the search, let's say 2,3 pages before and after the matched text, without giving the possibility to open the entire pdf.
How would you approach this with CirrusSearch? are there some parameters that I can tweak? Would you recommend some API calls or hooks directly to CirrusSearch? or would you suggest a different approach?
I've noticed that PdfHandler with the pdfToText and TikaAllTheFiles both get the pdf content indexed.
Thank you!