-
-
Save umeshdangat/06d4c0a23ee04a1723a5e6c46d637ac7 to your computer and use it in GitHub Desktop.
deploy ranking module within elasticsearch plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class YelpSearchRestAction extends BaseRestHandler { | |
@Override | |
protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) { | |
moduleLoader.loadModule(); //a. invoke re-loading of module.jar | |
return channel -> channel.sendResponse(new BytesRestResponse(RestStatus.OK, content)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment