Hello - I have an index with a single date field with n text fields. I am trying to construct a query which will search the index for a given date range while considering the value the user supplies across all the other fields. So far, I have this:
GET /my_index/_search
{
"query" : {
"range" : {
"my_date" : {
"gte" : "10/01/2021",
"lte" : "10/31/2021"
}
}
}
}
But I would like to have another field, say my_field, as part of the search. The reason for this is that I want to find all documents with this keyword, constrained by a date range. I tried adding a term query but that resulted in an Elasticsearch error.
Thanks in advance to all who respond.
Kevin