lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search
Date Tue, 17 Oct 2006 19:25:20 GMT
On Tuesday 17 October 2006 21:10, Chris Hostetter wrote:
> 
> : When custom Scorers and/or Directories need a close method, it can
> : also be provided by subclassing Scorer, IndexSearcher and Directory
> : in the custom code.
> : Not providing this close method in the Lucene core passes the message
> : that a working implementation is possible without it.
> 
> it seems like that would handicap adoption of new Queries/Directories ...
> I don't know how many people would have been interested in
> ConstantScoreQuery or FunctionQuery if they'd been told they had to stop
> using IndexSearcher and start using a new "ConstantScorableIndexSearcher"

Iirc no (general) closing method in Scorer or IndexSearcher was needed
for the Constant... and Function... queries and scorers.
And with the code readable from an svn repository, these is no need
to stop at any class to consider modifications.

Regards,
Paul Elschot

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message