What is your mapping? I mean what is the result of GET _mapping? Don't copy any PHP code here as we can't trust this is exactly what elasticsearch is getting.
Are you using the official PHP client? If so may be @polyfractal can help.
I think the problem is related to php.
Yes. I do think the same.
So fix the problem on your end and make sure you are sending expected dates to elasticsearch.
Note that by default, date format is like 2016-12-01T14:00:00.
I am using official PHP client. I corrected the date format but my problem continues. It dosen't return results format year/month/day/hours/minute/second.
The following query works correctly: http://10.0.2.15:8080/filter.php?date_try&date_gte=2016&date_lte=2017
However the following query does not work correctly:
we are publishing thousands tender on the website every day. We are using MySQL and PHP in now. However it is not enough for us. So we decided to use Elasticsearch. We finished the indexing job.We need to question the date of all tenders. For example, customers must find tenders on the website that they want to the date range.
Is it not possible at this elasticsearch technology?
Of course I deleted. But it dosen't work.
I am not sure but I think problem is indexing. We can not index mysql data. We would not be able to transfer data within the elastic. We continue working on the problem.
Can you test the script I gave please? No more. No less.
Then if it works, it proves that elasticsearch works well for such a case. (Which is the case on my laptop).
It would mean that your injection process is wrong.
Again, it's impossible to help if you don't give all the information about what you are doing and how.
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.