Skip to content

Latest commit

 

History

History
35 lines (34 loc) · 880 Bytes

QueryUri.md

File metadata and controls

35 lines (34 loc) · 880 Bytes

Query Uri

  • In addition to json dsl there is a URI Search
  • Support is more limited than json Dsl, but Kibana seems to be doing just fine with it
  • q parameter allows to specify query in lucene formatted query:
curl 'localhost:9200/ordering/order/_search?q=status:shipped&pretty=true'
  • Expected result:
{
  "took" : 19,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "failed" : 0
  },
  "hits" : {
    "total" : 1,
    "max_score" : 0.30685282,
    "hits" : [ {
      "_index" : "ordering",
      "_type" : "order",
      "_id" : "3",
      "_score" : 0.30685282,
      "_source" : {
        "id" : "3",
        "placedOn" : "2016-10-01T00:00:00Z",
        "status" : "shipped"
      }
    } ]
  }
}