mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
MoreLikeThis: Rename fields (rest/http parameter) to mltFields, closes #95.
This commit is contained in:
parent
8402738bbe
commit
81c6b9075c
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user