I use the match query search for "request.method": "GET":
{
"query": {
"filtered": {
"query": {
"match": {
"request.method": "GET"
}
},
"filter": {
"bool": {
"must": [
...
As expected, the Match query can get the results, as shown below:
But the question is when using the Term query, there is no results.
Update the query to change the "match" to "term", and keep the other part remain the same:
{
"query": {
"filtered": {
"query": {
"term": {
"request.method": "GET"
}
},
"filter": {
"bool": {
"must": [
...
I think the Term query is the "not analyzed" version of the Match query. As shown in above picture, there is at least one record has "request.method" equal to "GET". Why there is no results for the above-mentioned Term query? Thank you.
get
at lower case – Konstantin V. Salikhov