I am using PHP to write REST query to ES .I am trying to search my ES with a
query that contains date field. This is my query:
{"query":{"bool":{"must":{"range":{"timeGenerated":{"from":"2013/4/1
09:14:08","to":"2013/4/1 09:14:08"}}}}}}
When I try this query it gives me no response from server -not empty-. When
I remove the time portion from the date, it works!
{"query":{"bool":{"must":{"range":{"timeGenerated":{"from":"2013/4/1","to":"2013/4/1"}}}}}}
Also I tried the tow queries from curl command line and it works fine.
I am using PHP to write REST query to ES .I am trying to search my ES with
a
query that contains date field. This is my query:
{"query":{"bool":{"must":{"range":{"timeGenerated":{"from":"2013/4/1
09:14:08","to":"2013/4/1 09:14:08"}}}}}}
When I try this query it gives me no response from server -not empty-. When
I remove the time portion from the date, it works!
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.