add _mlt as well for uri

This commit is contained in:
kimchy 2010-02-27 04:02:07 +02:00
parent 8b36281d60
commit c5a2d497df
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ public class RestMoreLikeThisAction extends BaseRestHandler {
super(settings, client);
controller.registerHandler(GET, "/{index}/{type}/{id}/_moreLikeThis", this);
controller.registerHandler(POST, "/{index}/{type}/{id}/_moreLikeThis", this);
controller.registerHandler(GET, "/{index}/{type}/{id}/_mlt", this);
controller.registerHandler(POST, "/{index}/{type}/{id}/_mlt", this);
}
@Override public void handleRequest(final RestRequest request, final RestChannel channel) {