Increasing the highlight snippet size

2011-08-10 Thread Sang Yum
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=1&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

 to write a

http://10.1.1.51:8983/solr/select?q=%28bookCode%3abarglewargle+AND+content%3awriting+AND+id:6970%29&rows=1&sort=id+asc&fl=id%2cbookCode%2cnavPointId%2csectionTitle&hl=true&hl.fl=content&hl.snippets=100&hl.fragSize=1000&hl.maxAnalyzedChars=-1&version=2.2

 to write 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 1000, 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!


Re: Increasing the highlight snippet size

2011-08-10 Thread Sang Yum
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  wrote:

> an hl.fragsize of 1000 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  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=1&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
> >
> >  to > class="werd"> write a
> >
> >
> http://10.1.1.51:8983/solr/select?q=%28bookCode%3abarglewargle+AND+content%3awriting+AND+id:6970%29&rows=1&sort=id+asc&fl=id%2cbookCode%2cnavPointId%2csectionTitle&hl=true&hl.fl=content&hl.snippets=100&hl.fragSize=1000&hl.maxAnalyzedChars=-1&version=2.2
> >
> >  to > class="werd"> write 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 1000, 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


Re: Increasing the highlight snippet size

2011-08-10 Thread Sang Yum
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  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  wrote:
>
>> an hl.fragsize of 1000 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  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=1&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
>> >
>> >  to> > class="werd"> write a
>> >
>> >
>> http://10.1.1.51:8983/solr/select?q=%28bookCode%3abarglewargle+AND+content%3awriting+AND+id:6970%29&rows=1&sort=id+asc&fl=id%2cbookCode%2cnavPointId%2csectionTitle&hl=true&hl.fl=content&hl.snippets=100&hl.fragSize=1000&hl.maxAnalyzedChars=-1&version=2.2
>> >
>> >  to> > class="werd"> write 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 1000, 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