lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <>
Subject Re: opening a searcher lazily
Date Thu, 30 Apr 2009 04:03:44 GMT
There was a deadlock issue originally when the searcher was loaded
lazily. That is when we introduced the getNewestSearcher() method in

On Tue, Apr 28, 2009 at 11:43 PM, Chris Hostetter
<> wrote:
> : is it required to open the searcher in the constructor of SolrCore?.
> : We have a usecase where we just open a SolrCore to write a document
> : and close it. Opening the searcher is proving to be quite expensive
> : for us.
> Hmmm... i suspect it was setup that way initially because "add" required
> a searcher to check for an existing doc to delete first.  conceptually we
> should be able to change the SolrCore so a searcher is only opened once
> needed -- but practically this may be a challenge ... i believe there are
> more then a few places where an assumtion is made about there being at
> least one open searcher.
> -Hoss

--Noble Paul

View raw message