Re: fragsize for highlighting
I ended up removing the EdgeNGramFilterFactory and the highlighting seems to work okay. Thanks for your help, echoParams is useful. On Sat, Jul 30, 2011 at 2:07 PM, Ahmet Arslan wrote: > > I suspected that you set fragsize twice, but from what you paste thats not > the case. e.g. f.description_texts.hl.fragsize=100&hl.fragsize=10 > > However the response you pasted is not coming from that URL. It will be > better to see compatible URL and response. > > echoParams=all displays all parameters used. Both defaults defined in > solrconfig.xml and the ones in URL. > > http://wiki.apache.org/solr/CoreQueryParameters#echoParams > > > --- On Sat, 7/30/11, Frank Chiu wrote: > > > From: Frank Chiu > > Subject: Re: fragsize for highlighting > > To: "Ahmet Arslan" > > Cc: solr-user@lucene.apache.org > > Date: Saturday, July 30, 2011, 9:35 PM > > I'm a bit of a newbie- adding > > echoParams=all to my querystring isn't > > yielding additional info (does solr 1.4 support it?). > > Here's a query (also > > tried adding hl.fragsize=10): > > > > > http://localhost:8982/solr/select/?fl=*+score&start=0&q=gofish&qf=description_texts&hl.simple.pre=@@@hl@@@&hl.simple.post=@@@endhl@@@&fq=type:(Task)&hl=on&defType=dismax&rows=30&echoParams=all<http://localhost:8982/solr/select/?fl=*+score&start=0&q=gofish&qf=description_texts&hl.simple.pre=@@@hl@@@&hl.simple.post=@@@endhl@@@&fq=type:%28Task%29&hl=on&defType=dismax&rows=30&echoParams=all> > > > > > > > > 0 > > 3 > > > > 10 > > * score > > 0 > > immanu > > description_texts > > @@@hl@@@ > > @@@endhl@@@ > > type:(Task) > > on > > dismax > > 30 > > > > > > > > > > ... > > > > @@@hl@@@some s@@@endhl@@@uper long piece of text. long > > interesting stuff and > > text gofish found > > > > > > ... > > > > > > > > > > > > > > On Sat, Jul 30, 2011 at 2:58 AM, Ahmet Arslan > > wrote: > > > > > > Hi, I'm setting hl.fragsize = 10 in > > > > all my highlighting fragmenters but I'm > > > > still getting snippets being returned with > > > 10 > > > > characters (I think I'm > > > > getting the full text back). I also tried > > specifying > > > > hl.fragsize in the > > > > querystring, but the same thing happens. > > Any idea why > > > > fragsize is not > > > > getting picked up? > > > > > > May be you are setting it twice? What is the output of > > &echoParams=all? > > > > > >
Re: fragsize for highlighting
I suspected that you set fragsize twice, but from what you paste thats not the case. e.g. f.description_texts.hl.fragsize=100&hl.fragsize=10 However the response you pasted is not coming from that URL. It will be better to see compatible URL and response. echoParams=all displays all parameters used. Both defaults defined in solrconfig.xml and the ones in URL. http://wiki.apache.org/solr/CoreQueryParameters#echoParams --- On Sat, 7/30/11, Frank Chiu wrote: > From: Frank Chiu > Subject: Re: fragsize for highlighting > To: "Ahmet Arslan" > Cc: solr-user@lucene.apache.org > Date: Saturday, July 30, 2011, 9:35 PM > I'm a bit of a newbie- adding > echoParams=all to my querystring isn't > yielding additional info (does solr 1.4 support it?). > Here's a query (also > tried adding hl.fragsize=10): > > http://localhost:8982/solr/select/?fl=*+score&start=0&q=gofish&qf=description_texts&hl.simple.pre=@@@hl@@@&hl.simple.post=@@@endhl@@@&fq=type:(Task)&hl=on&defType=dismax&rows=30&echoParams=all > > > > 0 > 3 > > 10 > * score > 0 > immanu > description_texts > @@@hl@@@ > @@@endhl@@@ > type:(Task) > on > dismax > 30 > > > > > ... > > @@@hl@@@some s@@@endhl@@@uper long piece of text. long > interesting stuff and > text gofish found > > > ... > > > > > > > On Sat, Jul 30, 2011 at 2:58 AM, Ahmet Arslan > wrote: > > > > Hi, I'm setting hl.fragsize = 10 in > > > all my highlighting fragmenters but I'm > > > still getting snippets being returned with > > 10 > > > characters (I think I'm > > > getting the full text back). I also tried > specifying > > > hl.fragsize in the > > > querystring, but the same thing happens. > Any idea why > > > fragsize is not > > > getting picked up? > > > > May be you are setting it twice? What is the output of > &echoParams=all? > > >
Re: fragsize for highlighting
I'm a bit of a newbie- adding echoParams=all to my querystring isn't yielding additional info (does solr 1.4 support it?). Here's a query (also tried adding hl.fragsize=10): http://localhost:8982/solr/select/?fl=*+score&start=0&q=gofish&qf=description_texts&hl.simple.pre=@@@hl@@@&hl.simple.post=@@@endhl@@@&fq=type:(Task)&hl=on&defType=dismax&rows=30&echoParams=all 0 3 10 * score 0 immanu description_texts @@@hl@@@ @@@endhl@@@ type:(Task) on dismax 30 ... @@@hl@@@some s@@@endhl@@@uper long piece of text. long interesting stuff and text gofish found ... On Sat, Jul 30, 2011 at 2:58 AM, Ahmet Arslan wrote: > > Hi, I'm setting hl.fragsize = 10 in > > all my highlighting fragmenters but I'm > > still getting snippets being returned with > 10 > > characters (I think I'm > > getting the full text back). I also tried specifying > > hl.fragsize in the > > querystring, but the same thing happens. Any idea why > > fragsize is not > > getting picked up? > > May be you are setting it twice? What is the output of &echoParams=all? >
Re: fragsize for highlighting
> Hi, I'm setting hl.fragsize = 10 in > all my highlighting fragmenters but I'm > still getting snippets being returned with > 10 > characters (I think I'm > getting the full text back). I also tried specifying > hl.fragsize in the > querystring, but the same thing happens. Any idea why > fragsize is not > getting picked up? May be you are setting it twice? What is the output of &echoParams=all?
fragsize for highlighting
Hi, I'm setting hl.fragsize = 10 in all my highlighting fragmenters but I'm still getting snippets being returned with > 10 characters (I think I'm getting the full text back). I also tried specifying hl.fragsize in the querystring, but the same thing happens. Any idea why fragsize is not getting picked up? Thanks!