MoreLikeThis: Rename fields (rest/http parameter) to mltFields, closes #95.

This commit is contained in:
kimchy 2010-03-29 16:43:26 +03:00
parent 8402738bbe
commit 81c6b9075c

View File

@ -54,7 +54,7 @@ public class RestMoreLikeThisAction extends BaseRestHandler {
@Override public void handleRequest(final RestRequest request, final RestChannel channel) {
MoreLikeThisRequest mltRequest = moreLikeThisRequest(request.param("index")).type(request.param("type")).id(request.param("id"));
try {
mltRequest.fields(request.paramAsStringArray("fields", null));
mltRequest.fields(request.paramAsStringArray("mltFields", null));
mltRequest.percentTermsToMatch(request.paramAsFloat("percentTermsToMatch", -1));
mltRequest.minTermFrequency(request.paramAsInt("minTermFrequency", -1));
mltRequest.maxQueryTerms(request.paramAsInt("maxQueryTerms", -1));