Most of the requests Kibana does to get data from Elasticsearch are searches against an index. So if I copy the request from Kibana Discover, and paste that into the Kibana dev tools console, I need to add GET /your-index-name-here/_search before the body.
I can't really tell what the name of the field is that contains transaction_success. If you go to the index pattern in Kibana and look at the fields, can you tell me what you see for that field. Do you see that field listed twice, once with .keyword appended to the end?
I think your issue is that the field containing transaction_success is analyzed which splits it into transaction and success. But I would have thought the match_phrase you're doing would have then correctly matched on transaction success.
But if you could use the .keyword field that wouldn't be analyzed.
Match_phrase will use the default analyzer to split the query in terms, so in your case it will split it in transaction and success respectively transaction and error so it wouldn't find a different number of results due to transaction being the highest number. I would suggest using match for a term like that.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.