I have a project that I am trying to load an initial set of contents, and then load a second page through an AJAX API request. Specifically, I am dealing with an "events" structure, where dates are very important.
I am hitting a roadblock when I am trying to pull contents based on a date. If I search from the admin side, with a date range like this [20140814181700 TO 20991231235959], it returns 12 events (which is expected). However, if I grab the URL form the "Show Query" box and do a test through a testing tool (like Postman for Chrome), it returns nothing, and shows a 400, bad request. If I take out the date part of the query, it works. In addition, if I just search for a specific date, like 20140910*, both on the admin side and through the API, it works. Examples of the URL's being requested are below:
I have a project that I am trying to load an initial set of contents, and then load a second page through an AJAX API request. Specifically, I am dealing with an "events" structure, where dates are very important.
I am hitting a roadblock when I am trying to pull contents based on a date. If I search from the admin side, with a date range like this [20140814181700 TO 20991231235959], it returns 12 events (which is expected). However, if I grab the URL form the "Show Query" box and do a test through a testing tool (like Postman for Chrome), it returns nothing, and shows a 400, bad request. If I take out the date part of the query, it works. In addition, if I just search for a specific date, like 20140910*, both on the admin side and through the API, it works. Examples of the URL's being requested are below:
Specific date (with wildcard time): WORKS
Date range: Does not work
Is there anything that I am doing wrong here?