Elasticsearch is primarily a Full Text Search engine


Simple:


curl -XGET '192.168.42.202:9200/users/*_search*?q=*count:16*'

Complex:


curl -XGET 'localhost:9200/*whisky*/_search?pretty' -H 'Content-Type: application/json' -d'
{
  "query": {
    "bool": {
      "should": [
        { "match": { "distillery": "penderyn" } },
        { "match": { "whisky": "sherry" } }
      ]
    }
  }
}
'