Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 802 Bytes

File metadata and controls

32 lines (31 loc) · 802 Bytes

Query Uri

  • In addition to json dsl there is URI Search
  • Support is more limited than json Dsl, but Kibana seems to be just fine with it
  • q parameter allows to specify query in lucene formatted query:
curl 'localhost:9200/orders/orders/_search?q=placedOn:*&pretty=true'
  • Expected result:
{
  ...
  "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"
        }
      }, 
      ...
    ]
  }
}