Anybody facing the same issue? Following is my configuration ... <field name="content" type="text" indexed="true" stored="false" multiValued="true"/> <field name="teaser" type="text" indexed="false" stored="true"/> <copyField source="content" dest="teaser" maxChars="1000000" /> ...
... <requestHandler name="standard" class="solr.SearchHandler" default="true"> <lst name="defaults"> <str name="echoParams">explicit</str> <int name="rows">500</int> <str name="hl">true</str> <str name="fl">id,score</str> <str name="hl.fl">teaser</str> <str name="hl.alternateField">teaser</str> <int name="hl.fragsize">200</int> <int name="hl.maxAlternateFieldLength">200</int> <int name="hl.maxAnalyzedChars">500</int> </lst> </requestHandler> ... Search works fine if I disable highlighting and it brings 500 results. But if I enable hightlighting and set the no. of rows to just 20 I get OOME. -----Original Message----- From: Gargate, Siddharth [mailto:sgarg...@ptc.com] Sent: Friday, April 17, 2009 11:32 AM To: solr-user@lucene.apache.org Subject: RE: OutofMemory on Highlightling I tried hl.maxAnalyzedChars=500 but still the same issue. I get OOM for row size 20 only. -----Original Message----- From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com] Sent: Thursday, April 16, 2009 9:56 PM To: solr-user@lucene.apache.org Subject: Re: OutofMemory on Highlightling Hi, Have you tried: http://wiki.apache.org/solr/HighlightingParameters#head-2ca22f63cb8d1b2b a3ff0cfc05e85b94898c59cf Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: "Gargate, Siddharth" <sgarg...@ptc.com> > To: solr-user@lucene.apache.org > Sent: Thursday, April 16, 2009 6:33:46 AM > Subject: OutofMemory on Highlightling > > Hi, > > I am analyzing the memory usage for my Solr setup. I am > testing with 500 text documents of 2 MB each. > > I have defined a field for displaying the teasers and storing 1 MB of > text in it. I am testing with just 128 MB maxHeap(I know I should be > increasing it but just testing the worst case scenario). > > If I search for all 500 documents with row size as 500 and highlighting > disabled, it works fine. But if I enable highlighting I get > OutofMemoryError. > > Looks like stored field for all the matched results are read into the > memory. How to avoid this memory consumption? > > > > Thanks, > > Siddharth