Page 1 of 1

Extract Multiple Queries

Posted: Sat Mar 05, 2016 12:21 am
by rlinux57
How to extract multiple queries at a time ?

Re: Extract Multiple Queries

Posted: Mon Mar 07, 2016 12:20 pm
by jolson
Are you looking for a way to use the API to run multiple queries in one command? If so, try the following:

Code: Select all

curl -XPOST "http://localhost:9200/_search?pretty" -d'
{
    "fields": ["user", "message", "type"],
    "query": {
    "bool": {
      "should": [
        { "match": { "message":  "Failed" }},
        { "match": { "message": "Something Else"   }}
      ]
    }
        }
    }
}'
Explanation: https://www.elastic.co/guide/en/elastic ... rings.html