Hi; You can use Boundry Scanner in order to achieve this. You can set up your boundry scanner for word, line, sentence and character. You can follow that: https://cwiki.apache.org/confluence/display/solr/FastVector+Highlighter
Thanks; Furkan KAMACI 4 Aralık 2013 Çarşamba tarihinde katoo <arsineh.keshish...@wwk.de> adlı kullanıcı şöyle yazdı: > Hi guys, > > when searching for a phrase I get results and would like to show a > highlighting. > The highlightings beeing shown begin somewhere in the sentence, beginning > with a coma or something else. > I'd like to get highlightings beginning with a stence. > How to manage this. > I've tried so many things found in internet, but nothing helped. > Example: > > query.setHighlight(true).setParam("hl.useFastVectorHighlighte", "true"); > query.setHighlight(true).setParam("hl.fragsize", "500"); > query.setHighlight(true).setParam("hl.fragmenter", "regex"); > query.setHighlight(true).setParam("hl.regex.slop", "0.8"); > query.setHighlight(true).setParam("hl.regex.pattern", > "[\\w][^.!?]{400,600}[.!?]"); //\w[^\.!\?]{400,600}[\.!\?] > query.setHighlight(true).setParam("hl.bs.type", "SENTENCE"); > > etc etc.. > Whats wrong about this? > Thx > > > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Solr-cuts-highlighted-sentences-tp4104894.html > Sent from the Solr - User mailing list archive at Nabble.com. >