Exact fragment length in highlighting

2014-02-19 Thread Juan Carlos Serrano
Hello everybody, I'm using Solr 4.6.1. and I'd like to know if there's a way to determine exactly the number of characters of a fragment used in highlights. If I use hl.fragsize=70 the length of the fragments that I get is variable (often) and I get results of 90 characters length. Regards and

Re: Exact fragment length in highlighting

2014-02-19 Thread Ahmet Arslan
Hi Juan, Are you counting number of characters of html rendered snippet? I think pre and post strings (html markup which are not displayed) are causing that difference. Ahmet On Wednesday, February 19, 2014 5:53 PM, Juan Carlos Serrano jcserran...@gmail.com wrote: Hello everybody, I'm

Re: Exact fragment length in highlighting

2014-02-19 Thread Jason Hellman
Juan, Pay close attention to the boundary scanner you’re employing: http://wiki.apache.org/solr/HighlightingParameters#hl.boundaryScanner You can be explicit to indicate a type (hl.bs.type) with options such as CHARACTER, WORD, SENTENCE, and LINE. The default is WORD (as the wiki indicates)