lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re:
Date Fri, 11 Apr 2008 23:53:10 GMT
: I'm guessing this has to do with the spellchecker being in a component and how
: I ripped the code out of the SpellCheckRequestHandler.  If I hit the
: SpellCheckRequestHandler normally
: (http://localhost:8983/solr/core0/select?qt=spellchecker&q=pouted), two files
: are opened after the first query, and then no additional files opened.

Just to clarify: this is in your own private copy of some code where you 
made a QueryComponent out of some code you guted from 
SpellCheckerRequestHandler, and not some code currently in the trunk, or 
attached to an existing Jira issue ... correct?
(if it is in a Jira issue, please at a comment about this there)

The key is to make sure only one instance of "SpellChecker" is constructed 
during initialization, because each intsance opens the spell index and 
doesn't close it until it's garbage collected.

if you construct a new instance on every request, you're going to have 


View raw message