Package ar.com.restba.examples

Source Code of ar.com.restba.examples.SimpleQuery

package ar.com.restba.examples;

import ar.com.restba.DefaultRestBAClient;
import ar.com.restba.RestBAClient;
import ar.com.restba.json.JsonObject;

/**
* Muestra como hacer una query de elastic search
*
*/
public class SimpleQuery {

  public static void main(String[] args) {

    RestBAClient dataBairesClient = new DefaultRestBAClient();
    String query = "gcba/metadata/_search?&from=0";

    JsonObject q = dataBairesClient.executeQuery(query, JsonObject.class);
   
    System.out.println("JSON object: " + q.toString());
  }

}
TOP

Related Classes of ar.com.restba.examples.SimpleQuery

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.