Re: SolrCoreAware

2013-11-15 Thread Steven Bower
And the close hook will basically only be fired once during shutdown? On Fri, Nov 15, 2013 at 1:07 PM, Chris Hostetter wrote: > > : So for a given instance of a handler it will only be called once during > the > : lifetime of that handler? > > correct (unless there is a bug somewhere) > > : Also

Re: SolrCoreAware

2013-11-15 Thread Chris Hostetter
: So for a given instance of a handler it will only be called once during the : lifetime of that handler? correct (unless there is a bug somewhere) : Also, when the core is passed in as part of inform() is it guaranteed to be : ready to go? (ie I can start feeding content at this point?) Right,

Re: SolrCoreAware

2013-11-15 Thread Steven Bower
>>> it should be called only once during hte lifetime of a given plugin, >>> usually not long after construction -- but it could be called many, many >>> times in the lifetime of the solr process. So for a given instance of a handler it will only be called once during the lifetime of that handler?

Re: SolrCoreAware

2013-11-15 Thread Chris Hostetter
: So its something that can happen multiple times during the lifetime of : process, but i'm guessing something not occuring very often? it should be called only once during hte lifetime of a given plugin, usually not long after construction -- but it could be called many, many times in the life

Re: SolrCoreAware

2013-11-15 Thread Shalin Shekhar Mangar
On Fri, Nov 15, 2013 at 11:19 PM, Steven Bower wrote: > So its something that can happen multiple times during the lifetime of > process, but i'm guessing something not occuring very often? That's right. > > Also is there a way to hook the shutdown of the core? You can use SolrCore.addCloseHook

Re: SolrCoreAware

2013-11-15 Thread Steven Bower
So its something that can happen multiple times during the lifetime of process, but i'm guessing something not occuring very often? Also is there a way to hook the shutdown of the core? steve On Fri, Nov 15, 2013 at 12:08 PM, Alan Woodward wrote: > Hi Steven, > > It's called when the handler

Re: SolrCoreAware

2013-11-15 Thread Alan Woodward
Hi Steven, It's called when the handler is created, either at SolrCore construction time (solr startup or core reload) or the first time the handler is requested if it's a lazy-loading handler. Alan Woodward www.flax.co.uk On 15 Nov 2013, at 15:40, Steven Bower wrote: > Under what circumst

Re: SolrCoreAware

2010-06-16 Thread Chris Hostetter
: Can someone please explain what the inform method should accomplish? Thanks whatever you want it to acomplish ... it's just a hook that (some types of) plugins can use to finish their initialize themselves after init() has been called on the SolrCore and all of the other plugins. (it's a two

Re: SolrCoreAware analyzer

2009-02-27 Thread Bojan Šmid
Thanks for you suggestions. I do need SolrCore, but I could probably live with just SolrResourceLoader, while also creating my own FieldType (which can be ResourceLoaderAware). Bojan On Thu, Feb 26, 2009 at 11:48 PM, Chris Hostetter wrote: > > : I am writing a custom analyzer for my field type

Re: SolrCoreAware analyzer

2009-02-26 Thread Chris Hostetter
: I am writing a custom analyzer for my field type. This analyzer would need : to use SolrResourceLoader and SolrConfig, so I want to make it : SolrCoreAware. 1) Solr's support for using Analyzer instances is mainly just to make it easy for people who already have existing ANalyzer impls that th