Terms API: add the ability to return terms as array (termsAsArray flag), defaulting to true since order is important
This commit is contained in:
parent
38edf96271
commit
b05b01d9f8
|
@ -107,7 +107,7 @@ public class RestTermsAction extends BaseRestHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
final boolean termsAsArray = request.paramAsBoolean("termsAsArray", false);
|
||||
final boolean termsAsArray = request.paramAsBoolean("termsAsArray", true);
|
||||
client.execTerms(termsRequest, new ActionListener<TermsResponse>() {
|
||||
@Override public void onResponse(TermsResponse response) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue