Extract Multiple Queries
Extract Multiple Queries
How to extract multiple queries at a time ?
Re: Extract Multiple Queries
Are you looking for a way to use the API to run multiple queries in one command? If so, try the following:
Explanation: https://www.elastic.co/guide/en/elastic ... rings.html
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" }}
]
}
}
}
}'