[英]Elastic Search Interval in Date Range Query
I have a requirement where my query should be like this: 我有一个查询应该是这样的要求:
{
"size": 0,
"_source": [
"dateCreated"
],
"query": {
"bool": {
"must": {
"range": {
"date_published": {
"from": "2019-01-01", //Fixed date
"to": "--15 days from given 'from' date--" //Cannot find solution for this
}
}
}
}
}
}
I could not find documentation for a simple requirement like this. 我找不到像这样的简单要求的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.