The boundary scanner supports sentence as per:
https://cwiki.apache.org/confluence/display/solr/Highlighting

So, the word in context should - if I remember correctly - give you
the sentence that word is in even if the field has longer text.

Regards,
   Alex.
----
http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 13 April 2017 at 19:07, ankur <ankur.sancheti.netw...@gmail.com> wrote:
> Thanks Alex. Yes, I am using TIKA. So, to some extent it preserves the text
> flow.
>
> There is something interesting in your reply, "Or you could try using
> highlighter to return only
> the sentence. ".
>
> I didnt understand that bit. How do we use Highlighter to return the
> sentence?
>
> To make sure, I want to return all sentences where the word "Growth"
> appears.
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/keyword-in-context-for-PDF-document-tp4329754p4329794.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to