an hl.fragsize of 100000000000 is problematical, as Solr parses that parameter as a 32 bit int... that's several bits more.
-Simon On Wed, Aug 10, 2011 at 4:59 PM, Sang Yum <sang...@gmail.com> wrote: > Hi, > > I have been trying to increase the size of the highlight snippets using > "hl.fragSize" parameter, without much success. It seems that hl.fragSize is > not making any difference at all in terms of snippet size. > > For example, compare the following two set of query/results: > > http://10.1.1.51:8983/solr/select?q=%28bookCode%3abarglewargle+AND+content%3awriting+AND+id:6970%29&rows=100000000&sort=id+asc&fl=id%2cbookCode%2cnavPointId%2csectionTitle&hl=true&hl.fl=content&hl.snippets=100&hl.fragSize=10&hl.maxAnalyzedChars=-1&version=2.2 > > </span><span id="w20422" class="werd"> to</span><span id="w20423" > class="werd"> <em>write</em></span><span id="w20424" class="werd"> a > > http://10.1.1.51:8983/solr/select?q=%28bookCode%3abarglewargle+AND+content%3awriting+AND+id:6970%29&rows=100000000&sort=id+asc&fl=id%2cbookCode%2cnavPointId%2csectionTitle&hl=true&hl.fl=content&hl.snippets=100&hl.fragSize=100000000000&hl.maxAnalyzedChars=-1&version=2.2 > > </span><span id="w20422" class="werd"> to</span><span id="w20423" > class="werd"> <em>write</em></span><span id="w20424" class="werd"> a > > Because of our particular needs, the content has been "spanified", each word > with its own span id. I do apply HTMLStrip during the index time. > > What I would like to do is to increase the size of snippet so that the > highlighted snippets contain more surrounding words. > > Although hl.fragSize went from 10 to 100000000000, the result is the same. > This leads me to believe that hl.fragSize might not be the correct parameter > to achieve the effect i am looking for. If so, what parameter should I use? > > Thanks! >