req.getCore().getCoreDescriptor().getCoreContainer().reload(req.getCore().getName());
works like a charm :) thanx a lot
Bruno
On Fri, Aug 23, 2013 at 2:48 PM, Shalin Shekhar Mangar <
shalinman...@gmail.com> wrote:
> Actually I was suggesting that you execute the CoreAdminHandler from
> within
Actually I was suggesting that you execute the CoreAdminHandler from
within your handler or you can try calling CoreContainer.reload
directly.
On Fri, Aug 23, 2013 at 6:13 PM, Bruno René Santos wrote:
> Hi again,
>
> Thanx for the help :)
>
> I have this handler:
>
> public class SynonymsHandler
Hi again,
Thanx for the help :)
I have this handler:
public class SynonymsHandler extends RequestHandlerBase implements
SolrCoreAware {
public SynonymsHandler() {}
private static Logger log = LoggerFactory.getLogger(SynonymsHandler.class);
@Override
public void handleRequestBody(SolrQueryRequ
I don't think that should be a problem. Your custom RequestHandler
must call "reload". Note that a new instance of your request handler
will be created and inform will be called on it once reload happens
i.e. you won't be able to keep any state in the request handler across
core reloads.
You can a
Great! What about inside a RequestHandler source code in Java? I want to
create a requestHandler that receives new synonyms, insert them on the
synonyms file and reload the core.
Regards
Bruno
On Fri, Aug 23, 2013 at 9:28 AM, Shalin Shekhar Mangar <
shalinman...@gmail.com> wrote:
> Yes, you can
Yes, you can use the Core RELOAD command:
https://cwiki.apache.org/confluence/display/solr/CoreAdminHandler+Parameters+and+Usage#CoreAdminHandlerParametersandUsage-%7B%7BRELOAD%7D%7D
On Fri, Aug 23, 2013 at 1:51 PM, Bruno René Santos wrote:
> Hello,
>
> Is it possible to reload the synonyms and