Terms API: add the ability to return terms as array (termsAsArray flag), defaulting to true since order is important

This commit is contained in:
kimchy 2010-02-22 01:50:58 +02:00
parent 38edf96271
commit b05b01d9f8
1 changed files with 1 additions and 1 deletions

View File

@ -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 {