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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final boolean termsAsArray = request.paramAsBoolean("termsAsArray", false);
|
final boolean termsAsArray = request.paramAsBoolean("termsAsArray", true);
|
||||||
client.execTerms(termsRequest, new ActionListener<TermsResponse>() {
|
client.execTerms(termsRequest, new ActionListener<TermsResponse>() {
|
||||||
@Override public void onResponse(TermsResponse response) {
|
@Override public void onResponse(TermsResponse response) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue