Hello, I'm doing the following query to elasticsearch using the JS API:
client.search({
index: 'winlogbeat-2017.05.19',
size : 50,
body : {
query : {
match : { tags : "example-tag" }
}
}
}).then(function (body) {
...
}
There are only 26 registers with the tag "example-tag", but Elasticsearch returns 50 results, the first 26th are with the "example-tag" tag, and the rest are results of the same index, in the correct timestamp order but without the "example-tag" tag.
How can I only retrieve results with the "example-tag" tag?