elasticsearch - Elastic search : how to get all data of specific field -
i'm using java api. want know how fetch specific field. have tried query in elasticsearch head plugin:
{"fields": ["name"],"query": { "match_all": {} }}
it's working. now, please me write using java api.
the equivalent sql query be:
select name user;
to use match queries in java api..
querybuilder qb = querybuilders.matchallquery();
refer http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/query-dsl-queries.html
i have created git hub repository.. refer use java client.https://github.com/sidharthancr/elasticsearch-java-client.
hope helps..!
Comments
Post a Comment