Hi I am trying to do query on elastic search by following the sql query and I want to implement same logic using Java API
select
* from log
where
name is "jay"
and [all_field_value] LIKE "%keyword%"
and @datetime between '2016-05-20T00:00:00.000Z' AND '2016-05-30T00:00:00.000Z'
when i run the code ,the results's timestamp is not between the RangeQueryBuilder range and each document is not all match the nameqry (that's can see in my code)
Please guide I am new to Elastic search. Thanks in advance.
return result is all match nameqry and qs but didn't get all match results from
the range that i set ,
for example , it's have miss logstash-log-2016.05.26
please can you tell me what's wrong with me ?
for my code ,i want to get from "2016-05-20T00:00:00.000Z") to ("2016-05-27T00:00:00.000Z"),
it's only get 2016-05-23 to 2016-05-24 , but i check the document it's should have 2016-05-26 document too
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.