Well, only after I posted this question in a public forum, I found the cause of my problem. I was using "hl.fragSize", instead of "hl.fragsize". After correcting the case, it worked as expected.
Thanks. On Wed, Aug 10, 2011 at 3:19 PM, Sang Yum <sang...@gmail.com> wrote: > I was just trying to set it a ridiculously large number to make it work. > What I am seeing is that hl.fragsize doesn't seem to make any difference in > term of highlight snippet size... I just tried the query with hl.fragsize > set to 1000. Same result as 10. > > > On Wed, Aug 10, 2011 at 2:20 PM, simon <mtnes...@gmail.com> wrote: > >> 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! >> > >> > > > > -- > http://twitter.com/sangyum > -- http://twitter.com/sangyum