I am looking for date range query in QBE. I am trying below query sample
https://Server:port/v1/qbe?format=json&pageLength=10&start=1&directory=/json/&options=search_option_advanced_date&query={"$query":{
"$and":[{"creation_date":{"$le":"2018-12-12T05:40:47.496"}},{"creation_date":{"$ge":"2017-12-12T05:40:47.496"}}],"$filtered":true}}
here i have created path range index on '/Creation_Date_date' & element range index on 'Creation_Date_date' also added below constraint in search_option_advanced_date file in persistent options
<constraint name="creation_date">
<range type="xs:date">
<element name="Creation_Date_date"/>
</range>
</constraint>
Though the results should get fetched i am getting below blanks
{
"snippet-format":"snippet",
"total":0,
"start":1,
"page-length": 10,
"selected": "include-with-ancestors",
"results":[],
"facets": {
"EntityType":{"type":"xs:string", "facetValues":[]},
"Category":{"type":"xs:string", "facetValues":[]},
"Genre":{"type":"xs:string", "facetValues":[]},
"creation_date":{"type":"xs:date", "facetValues":[]}
},
"metrics": {
"query-resolution-time":"PT0.016599S",
"facet-resolution-time":"PT0.000578S",
"extract-resolution-time":null, "total-time":"PT0.017743S"
}
}