Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch: 1.3.3
Dashboard: 1.2.0
Server: Ubuntu 22.04 LTS server
Browser: Chrome 112
Describe the issue:
I’ve got a document with download links like this:
"download_link" : [
{
"link" : "https://domain1.com/path/to/file",
"domain" : "domain1.com"
},
{
"link" : "https://domain2.com/path/to/file",
"domain" : "domain2.com"
}
],
What I’m looking to do is to create a query that matches BOTH links. I have the following:
{
"query": {
"bool": {
"should" : [
{
"term": {
"download_link.link.keyword": "https://domain2.com/path/to/file"
}
},
{
"term": {
"download_link.link.keyword": "https://domain1.com/path/to/file"
}
}
],
"minimum_should_match": 2
}
}
}
But this returns no results. My guess is because the first link is not equal to both links.
Can someone help me out with this query?
Thanks!