Hello. I'm trying to understand whether it is possible to make a full-text request and specify a time filter in the request, for example, for the last 15 minutes?
A request that I would like to improve :
{
"query": {
"match": {
"log": "my log"
}
}
}
I want to add something like this to my request:
{
"timestamp": {
"gte": "now-1d",
"lte": "now"
}
}
If my document contains a field "logs" : "text text log text" then I can find that document using the word "log" and filter the query for the last 15 minutes?
If you want to do this ... you will need to learn a bit about the Query Language, lots of docs , examples etc.
More Here
Another way to learn this is to use Discover and then look at the query it Generates those queries can be a bit complex but it can be a good way to learn.
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.