Wednesday 2 December 2015

Elasticsearch: Java: match_all query


‘match_all’ query matches all documents.
{
         "match_all" : { }
}


GET /_search
{
  "query":{
    "match_all" : { }
  }
}

Following java snippet creates java query.

QueryBuilder builder = QueryBuilders.matchAllQuery();



Previous                                                 Next                                                 Home

No comments:

Post a Comment