How do I pass a list as query string to match_phrase query?
This works:
{"match_phrase": {"requestParameters.bucketName": {"query": "xxx"}}},
This does not:
{
"match_phrase": {
"requestParameters.bucketName": {
"query": [
"auditloggingnew2232",
"config-bucket-123",
"web-servers",
"esbck-essnap-1djjegwy9fvyl",
"tempexpo",
]
}
}
}
boolquery ? Ref : stackoverflow.com/a/30020384/11774805match_phraseif you're only searching a single token?match_phraseis for matching tokens that follow each other. You're querying individual tokens, so thetermsquery would probably fit your need.